summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-16 22:59:08 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-16 22:59:08 +0200
commitdbe8d40fd10eb4042cd012d3bcb4890584fa92b7 (patch)
tree4bd9cb8af5cb7dbf469a15a420cf1db8facc304b /.github
parent:bug: fix release (diff)
downloadserver-dbe8d40fd10eb4042cd012d3bcb4890584fa92b7.tar.xz
:bug: update release
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml32
1 files changed, 29 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index aba2a442..4304245f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,13 +14,39 @@ jobs:
         os: [windows, macos, ubuntu]
         include:
           - os: windows
-            build: npx caxa -i .. -m 'This_may_take_a_while_to_run_the_first_time_please_wait...' --output 'fosscord-server-windows.exe' -- cd bundle; del /F /S /Q node_modules\@fosscord; mklink /D node_modules\@fosscord\api ..\api; mklink /D node_modules\@fosscord\cdn ..\cdn; mklink /D node_modules\@fosscord\gateway ..\gateway; mklink /D node_modules\@fosscord\util ..\util; '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'
+            build: >
+              npx caxa -i .. -m 'This_may_take_a_while_to_run_the_first_time_please_wait...' --output 'fosscord-server-windows.exe' --
+              cd bundle
+              del /F /S /Q node_modules\@fosscord
+              mklink /D node_modules\@fosscord\api ..\api
+              mklink /D node_modules\@fosscord\cdn ..\cdn
+              mklink /D node_modules\@fosscord\gateway ..\gateway
+              mklink /D node_modules\@fosscord\util ..\util
+              {{caxa}}/node_modules/.bin/node {{caxa}}/dist/start.js
             artifact: fosscord-server-windows.exe
           - os: macos
-            build: npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' -- cd bundle; ln -sf node_modules/@fosscord/api ../api; ln -sf node_modules/@fosscord/cdn ../cdn; ln -sf node_modules/@fosscord/gateway ../gateway; ln -sf node_modules/@fosscord/util ../util; '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js'; tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app'
+            build: >
+              npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' --
+              cd bundle
+              ln -sf node_modules/@fosscord/api ../api
+              ln -sf node_modules/@fosscord/cdn ../cdn
+              ln -sf node_modules/@fosscord/gateway ../gateway
+              ln -sf node_modules/@fosscord/util ../util
+              '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js'
+
+              tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app'
             artifact: fosscord-server-macos.app.tgz
           - os: ubuntu
-            build: npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- cd bundle; ln -sf node_modules/@fosscord/api ../api; ln -sf node_modules/@fosscord/cdn ../cdn; ln -sf node_modules/@fosscord/gateway ../gateway; ln -sf node_modules/@fosscord/util ../util; '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js'; tar -czf 'fosscord-server-linux.tgz' 'fosscord'
+            build: >
+              npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord' --
+              cd bundle
+              ln -sf node_modules/@fosscord/api ../api
+              ln -sf node_modules/@fosscord/cdn ../cdn
+              ln -sf node_modules/@fosscord/gateway ../gateway
+              ln -sf node_modules/@fosscord/util ../util
+              '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js'
+
+              tar -czf 'fosscord-server-linux.tgz' 'fosscord'
             artifact: fosscord-server-linux.tgz
     runs-on: ${{ matrix.os }}-latest
     steps: