fix documentation and branding for release

This commit is contained in:
Dagen Brock 2020-03-05 11:43:06 -06:00
parent 2f38947dd8
commit 151b692949
7 changed files with 13 additions and 10 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
node_modules
ProDOS*
PRODOS*

View File

@ -1,4 +1,4 @@
# cadius-action
# install-cadius-action
A Github Action for installing Cadius and allowing you to manipulate ProDOS disk images with it.
@ -6,7 +6,7 @@ A Github Action for installing Cadius and allowing you to manipulate ProDOS disk
```
# This will install Cadius on your Github Runner machine
- name: Install Cadius
uses: digarok/cadius-action@node
uses: digarok/install-cadius-action@master
with:
include_prodos: true

View File

@ -1,4 +1,4 @@
name: 'cadius-action'
name: 'install-cadius-action'
description: 'Github Action to set up Cadius for ProDOS disk image manipulation'
author: 'Dagen Brock'
inputs:
@ -7,4 +7,7 @@ inputs:
default: 'true'
runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/index.js'
branding:
icon: 'save'
color: 'blue'

3
dist/index.js vendored
View File

@ -846,7 +846,6 @@ function downloadProdos(cadiusPath) {
}
console.log(util.format("Downloaded file: ", d2pDownloadPath));
try {
const spawn = __webpack_require__(129).spawn;
const spawnSync = __webpack_require__(129).spawnSync;
spawnSync('python3', [d2pDownloadPath, p8DskPath]);
const cadiusProcess = spawnSync(cadiusExe, ['extractvolume', 'ProDOS_2_4_2.po', '.'], { encoding: 'utf8' });
@ -854,7 +853,7 @@ function downloadProdos(cadiusPath) {
}
catch (exception) {
console.log(exception);
console.log("Unagle to complete ProDOS download and extraction.");
console.log("Unable to complete ProDOS download and extraction.");
}
});
}

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "cadius-action",
"name": "install-cadius-action",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "cadius-action",
"name": "install-cadius-action",
"version": "0.0.0",
"license": "MIT",
"main": "dist/index.js",

View File

@ -69,7 +69,6 @@ async function downloadProdos(cadiusPath: string) {
// Now we need to a) convert the image and b) extract the volume file locally
try {
const spawn = require("child_process").spawn;
const spawnSync = require("child_process").spawnSync;
spawnSync('python3',[d2pDownloadPath, p8DskPath]);
@ -77,7 +76,7 @@ async function downloadProdos(cadiusPath: string) {
console.log(cadiusProcess.stdout);
} catch (exception) {
console.log(exception);
console.log("Unagle to complete ProDOS download and extraction.");
console.log("Unable to complete ProDOS download and extraction.");
}
}