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:
parent
046c353bf9
commit
9a18202440
3 changed files with 36 additions and 1 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -60,8 +60,15 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose --features oodle
|
run: cargo test --verbose --features oodle
|
||||||
- name: Prepare Artifacts
|
- name: Prepare Artifacts
|
||||||
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
mv target/release/* .
|
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
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -84,4 +91,5 @@ jobs:
|
||||||
resources/
|
resources/
|
||||||
!resources/tests
|
!resources/tests
|
||||||
!resources/opcodes.json
|
!resources/opcodes.json
|
||||||
if-no-files-found: error
|
run.sh
|
||||||
|
run.bat
|
||||||
|
|
14
scripts/run_artifacts_linux.sh
Executable file
14
scripts/run_artifacts_linux.sh
Executable 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
|
13
scripts/run_artifacts_windows.bat
Normal file
13
scripts/run_artifacts_windows.bat
Normal 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
|
Loading…
Add table
Reference in a new issue