Skip to content

Commit

Permalink
Update everything and fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
coredev-uk committed Mar 6, 2024
1 parent 11c4e6c commit 4f8661e
Show file tree
Hide file tree
Showing 6 changed files with 4,476 additions and 165 deletions.
134 changes: 0 additions & 134 deletions .github/workflows/build-win-linux.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on: push

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"

- uses: actions/checkout@v4

- name: Install Dependencies
run: yarn install

# npm config set msvs_version 2022

- name: Build binaries
run: yarn build

- name: Build Exe
if: ${{ matrix.os == 'windows-latest' }}
run: yarn exe

- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
files: |
prebuilds/*.tar.gz
./airtunes2.exe
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ prebuilds/airtunes2-v2.3.0-electron-v103-win32-x64.tar.gz
prebuilds/airtunes2-v2.3.0-electron-v106-win32-x64.tar.gz
mirrors.raw
.yarn/
prebuilds/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
"url": "https://github.com/ciderapp/node_airtunes2.git"
},
"scripts": {
"build-binaries-electron": "run-script-os",
"build-binaries-electron-ci": "prebuild --platform win32 --platform linux --platform darwin --include-regex \"^.*\\.(node|dylib|lib|exp|dll|so(\\.[0-9])?)$\" -r electron -t 25.0.0-alpha.1 -t 24.0.0-alpha.1 -t 23.0.0-alpha.1 -t 22.0.0-alpha.1 -t 21.0.- -t 20.1.- -t 19.0.1 -t 16.0.7",
"build-binaries-electron:win32": "prebuild --platform win32 --include-regex \"^.*\\.(node|dylib|lib|exp|dll|so(\\.[0-9])?)$\" -r electron -t 25.0.0-alpha.1 -t 24.0.0-alpha.1 -t 23.0.0-alpha.1 -t 22.0.0-alpha.1 -t 21.0.0 -t 20.1.0 -t 19.0.3 -t 18.3.3 -t 16.0.7",
"build-binaries-electron:linux": "prebuild --platform linux --include-regex \"^.*\\.(node|dylib|lib|exp|dll|so(\\.[0-9])?)$\" -r electron -t 25.0.0-alpha.1 -t 24.0.0-alpha.1 -t 23.0.0-alpha.1 -t 22.0.0-alpha.1 -t 21.0.0 -t 20.1.0 -t 19.0.3 -t 18.3.3",
"build-binaries-electron:darwin": "prebuild --platform darwin --include-regex \"^.*\\.(node|dylib|lib|exp|dll|so(\\.[0-9])?)$\" -r electron -t 25.0.0-alpha.1 -t 24.0.0-alpha.1 -t 23.0.0-alpha.1 -t 22.0.0-alpha.1 -t 21.0.0 -t 20.1.0 -t 19.0.3 -t 18.3.3",
"build-binaries-electron2": "prebuild --platform darwin -a arm64 --include-regex \"^.*\\.(node|dylib|lib|exp|dll|so(\\.[0-9])?)$\" -r electron -t 25.0.0-alpha.1 -t 24.0.0-alpha.1 -t 23.0.0-alpha.1 -t 22.0.0-alpha.1 -t 21.0.0 -t 20.1.0 -t 19.0.3 -t 18.3.3",
"install": "prebuild-install || (npm run rebuild || (true || VER>NUL))",
"build": "run-script-os",
"build:win32": "prebuild --platform win32 -r electron -t 29.1.0",
"build:linux": "prebuild --platform linux -r electron -t 29.1.0",
"build:darwin": "prebuild --platform darwin -a x64 -a arm64 -r electron -t 29.1.0",
"prebuild-install": "prebuild-install || (npm run rebuild || (true || VER>NUL))",
"rebuild": "node-gyp configure build",
"exe": "pkg --compress Brotli .",
"exefast": "pkg .",
Expand All @@ -51,43 +49,45 @@
"node_modules/castv2/lib/*.proto"
],
"targets": [
"node18-win"
"node20-win"
]
},
"dependencies": {
"@noble/ed25519": "^1.6.1",
"@noble/ed25519": "^2.0.0",
"arraybuffer-to-string": "^1.0.2",
"async": "^3.2.1",
"axlsign": "git+https://github.com/ciderapp/curve25519-js.git",
"big-integer": "^1.6.25",
"async": "^3.2.5",
"axlsign": "ciderapp/curve25519-js.git",
"big-integer": "^1.6.52",
"castv2-client": "^1.2.0",
"chacha-js": "https://github.com/ciderapp/chacha20poly1305",
"crypto-js": "^4.1.1",
"chacha-js": "ciderapp/chacha20poly1305",
"crypto-js": "^4.2.0",
"curve25519-js": "^0.0.4",
"electron-fetch": "^1.7.4",
"elliptic": "^6.4.0",
"electron-fetch": "^1.9.1",
"elliptic": "^6.5.5",
"fast-srp-hap": "^2.0.4",
"js-crypto-aes": "^1.0.4",
"js-sha1": "^0.4.1",
"lodash": "^4.17.4",
"mdns-js": "github:ciderapp/node-mdns-js",
"js-crypto-aes": "^1.0.6",
"js-sha1": "^0.7.0",
"lodash": "^4.17.21",
"mdns-js": "ciderapp/node-mdns-js",
"node-gyp": "^10.0.1",
"parse-raw-http": "0.0.1",
"pkg": "^5.8.0",
"prebuild-install": "git+https://github.com/ciderapp/prebuild-install.git",
"pkg": "^5.8.1",
"prebuild-install": "ciderapp/prebuild-install",
"python-struct": "^1.1.3",
"simple-plist": "^1.3.1",
"simple-plist": "^1.4.0",
"varint": "^6.0.0",
"ws": "^8.12.0",
"yargs": "^9.0.1"
"ws": "^8.16.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"node-abi": "^3.31.0",
"node-abi": "^3.56.0",
"optimist": "^0.6.1",
"prebuild": "git+https://github.com/ciderapp/prebuild.git",
"request": "^2.83.0",
"prebuild": "ciderapp/prebuild",
"request": "^2.88.2",
"run-script-os": "^1.1.6"
},
"bugs": {
"url": "https://github.com/ciderapp/node_airtunes2/issues"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 4f8661e

Please sign in to comment.