mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
🐛 fix release
This commit is contained in:
parent
a632e4ad86
commit
5849d5de6a
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -14,13 +14,16 @@ jobs:
|
|||||||
os: [windows, macos, ubuntu]
|
os: [windows, macos, ubuntu]
|
||||||
include:
|
include:
|
||||||
- os: windows
|
- os: windows
|
||||||
build: npx caxa -i . -m 'This_may_take_a_while_to_run_the_first_time_please_wait...' --output 'fosscord-server-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'
|
file: fosscord-server-windows.exe
|
||||||
|
package: ""
|
||||||
artifact: fosscord-server-windows.exe
|
artifact: fosscord-server-windows.exe
|
||||||
- os: macos
|
- os: macos
|
||||||
build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app'
|
file: fosscord-server.app
|
||||||
|
package: tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app'
|
||||||
artifact: fosscord-server-macos.app.tgz
|
artifact: fosscord-server-macos.app.tgz
|
||||||
- os: ubuntu
|
- os: ubuntu
|
||||||
build: npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-server-linux.tgz' 'fosscord'
|
file: fosscord
|
||||||
|
package: chmod +x fosscord && tar -czf 'fosscord-server-linux.tgz' 'fosscord'
|
||||||
artifact: fosscord-server-linux.tgz
|
artifact: fosscord-server-linux.tgz
|
||||||
runs-on: ${{ matrix.os }}-latest
|
runs-on: ${{ matrix.os }}-latest
|
||||||
steps:
|
steps:
|
||||||
@ -49,13 +52,10 @@ jobs:
|
|||||||
npm run build
|
npm run build
|
||||||
npm pack
|
npm pack
|
||||||
cd ../bundle
|
cd ../bundle
|
||||||
npm i ../util/fosscord-util-1.0.0.tgz
|
npm i ../cdn/fosscord-cdn-1.0.0.tgz ../gateway/fosscord-gateway-1.0.0.tgz ../api/fosscord-api-1.0.0.tgz ../util/fosscord-util-1.0.0.tgz caxa
|
||||||
npm i ../cdn/fosscord-cdn-1.0.0.tgz
|
|
||||||
npm i ../gateway/fosscord-gateway-1.0.0.tgz
|
|
||||||
npm i ../api/fosscord-api-1.0.0.tgz
|
|
||||||
npm i caxa
|
|
||||||
npm run build:bundle
|
npm run build:bundle
|
||||||
${{ matrix.build }}
|
npx caxa -i . -m 'This_may_take_a_while_to_run_the_first_time_please_wait...' --output '${{matrix.file}}' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'
|
||||||
|
${{ matrix.package }}
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact }}
|
name: ${{ matrix.artifact }}
|
||||||
|
@ -5,14 +5,13 @@
|
|||||||
"main": "dist/Server.js",
|
"main": "dist/Server.js",
|
||||||
"types": "dist/Server.d.ts",
|
"types": "dist/Server.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npm i -g patch-package",
|
|
||||||
"test": "npm run build && jest --coverage --verbose --forceExit ./tests",
|
"test": "npm run build && jest --coverage --verbose --forceExit ./tests",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"start": "npm run build && node dist/start",
|
"start": "npm run build && node dist/start",
|
||||||
"build": "npx tsc -b .",
|
"build": "npx tsc -b .",
|
||||||
"build-docker": "tsc -p tsconfig-docker.json",
|
"build-docker": "tsc -p tsconfig-docker.json",
|
||||||
"dev": "tsnd --respawn src/start.ts",
|
"dev": "tsnd --respawn src/start.ts",
|
||||||
"patch": "patch-package",
|
"patch": "npx patch-package",
|
||||||
"postinstall": "npm run patch"
|
"postinstall": "npm run patch"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Loading…
Reference in New Issue
Block a user