Skip to content

Commit

Permalink
Add Package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vsverchinsky committed Jul 9, 2024
1 parent 9bc0e2a commit 78c9e87
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 9,715 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Package

on:
workflow_dispatch:

jobs:
package:
runs-on: macos-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: actions/checkout@v4
with:
ref: conan2
- run: npm install
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
Empty file modified dist/package/build/Release/volume.node
100755 → 100644
Empty file.
3 changes: 0 additions & 3 deletions lib/appleCodeSigning.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
const plist = require('simple-plist');
const fetch = require('node-fetch');

const helpers = require('../lib/helpers.js');
const fileUtils = require('./fileUtils.js');

Expand Down
12 changes: 6 additions & 6 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ function error(msg) {
}
}

async function execWithLog(programm, arguments) {
async function execWithLog(programm, args) {
if (runningOnCI) {
return exec.exec(programm, arguments);
return exec.exec(programm, args);
} else {
return exec.exec(programm, arguments, {
return exec.exec(programm, args, {
listeners: {
/*debug: data => {
log(data);
Expand All @@ -46,11 +46,11 @@ async function execWithLog(programm, arguments) {
}
}

async function getExecOutput(programm, arguments) {
async function getExecOutput(programm, args) {
if (runningOnCI) {
return exec.getExecOutput(programm, arguments);
return exec.getExecOutput(programm, args);
} else {
return exec.getExecOutput(programm, arguments, {
return exec.getExecOutput(programm, args, {
listeners: {
stdout: data => {
log(data.toString());
Expand Down
2 changes: 1 addition & 1 deletion lib/lipo.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ async function archSuffix(appPath) {

module.exports = {
create: create,
archs, archs,
archs: archs,
archSuffix: archSuffix
}
Loading

0 comments on commit 78c9e87

Please sign in to comment.