1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-05-05 20:27:45 +00:00

Add run script to the artifact

This commit is contained in:
Joshua Goins 2025-05-03 18:56:57 -04:00
parent 046c353bf9
commit 9a18202440
3 changed files with 36 additions and 1 deletions

View file

@ -60,8 +60,15 @@ jobs:
- name: Run tests
run: cargo test --verbose --features oodle
- name: Prepare Artifacts
if: runner.os == 'Windows'
run: |
mv target/release/* .
mv scripts/run_artifacts_windows.bat run.bat
- name: Prepare Artifacts
if: runner.os == 'Linux'
run: |
mv target/release/* .
mv scripts/run_artifacts_linux.sh run.sh
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
@ -84,4 +91,5 @@ jobs:
resources/
!resources/tests
!resources/opcodes.json
if-no-files-found: error
run.sh
run.bat

14
scripts/run_artifacts_linux.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
trap 'kill $(jobs -p)' EXIT
./kawari-admin &
./kawari-frontier &
./kawari-login &
./kawari-patch &
./kawari-web &
./kawari-lobby &
./kawari-world &
./kawari-launcher &
./kawari-savedatabank &
wait

View file

@ -0,0 +1,13 @@
@echo off
(
start "admin" cmd /C "kawari-admin.exe"
start "frontier" cmd /C "kawari-frontier.exe"
start "login" cmd /C "kawari-login.exe"
start "patch" cmd /C "kawari-patch.exe"
start "web" cmd /C "kawari-web.exe"
start "lobby" cmd /C "kawari-lobby.exe"
start "world" cmd /C "kawari-world.exe"
start "launcher" cmd /C "kawari-launcher.exe"
start "savedatabank" cmd /C "kawari-savedatabank.exe"
) | pause