Skip to content

Commit

Permalink
fix: use changed binary names (#115)
Browse files Browse the repository at this point in the history
* fix: use changed binary names

* fix: use command line arguments instead of package.json for `targets` and `out-path`
  • Loading branch information
thebengeu authored Mar 1, 2022
1 parent fb6cae9 commit fade3d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
run: |
npm ci
npm run build
npm run pkg
mv bin/server-macos storage-api-macos-x86_64
mv bin/server-linux storage-api-x86_64
npm run pkg -- --targets node14-linux-x64,node14-macos-x64 --out-path bin
mv bin/supa-storage-macos storage-api-macos-x86_64
mv bin/supa-storage-linux storage-api-x86_64
tar -czvf storage-api-linux-x64.tar.gz storage-api-x86_64 migrations/
tar -czvf storage-api-macos-x64.tar.gz storage-api-macos-x86_64 migrations/
- name: Upload x64 binary to release
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@
},
"bin": "./dist/server.js",
"pkg": {
"assets": "node_modules/pg-format/lib/reserved.js",
"outputPath": "bin",
"targets": [
"node14-linux-x64",
"node14-macos-x64"
]
"assets": "node_modules/pg-format/lib/reserved.js"
}
}

0 comments on commit fade3d0

Please sign in to comment.