Improve Windows artifacts
This commit is contained in:
parent
21a4f9a624
commit
b648214e3c
20
.github/workflows/build_windows.yml
vendored
20
.github/workflows/build_windows.yml
vendored
@ -55,15 +55,27 @@ jobs:
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: scripts\ci\windows\post_build.bat
|
||||
|
||||
- name: Assemble Files
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: scripts\ci\windows\assemble.bat
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OpenStarbound-Dev-Windows-x64
|
||||
name: OpenStarbound-Windows
|
||||
path: dist/*
|
||||
|
||||
- name: Assemble Install Files
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: scripts\ci\windows\assemble.bat
|
||||
- name: Upload Client
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OpenStarbound-Windows-Client
|
||||
path: client_distribution/*
|
||||
|
||||
- name: Upload Server
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OpenStarbound-Windows-Server
|
||||
path: server_distribution/*
|
||||
|
||||
- name: Create Installer
|
||||
working-directory: ${{ github.workspace }}
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,6 +6,8 @@
|
||||
/mac/
|
||||
/dist/
|
||||
/installer/
|
||||
/client_distribution/
|
||||
/server_distribution/
|
||||
enc_temp_folder/
|
||||
.cache/
|
||||
/attic/user/
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
mkdir client_distribution
|
||||
mkdir client_distribution/assets
|
||||
mkdir client_distribution/assets/user
|
||||
|
||||
./dist/asset_packer -c scripts/packing.config assets/opensb client_distribution/assets/opensb.pak
|
||||
cp -r assets/user client_distribution/assets/
|
||||
|
||||
mkdir client_distribution/mods
|
||||
touch client_distribution/mods/mods_go_here
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
mkdir client_distribution
|
||||
mkdir client_distribution/assets
|
||||
mkdir client_distribution/assets/user
|
||||
|
||||
./dist/asset_packer -c scripts/packing.config assets/opensb client_distribution/assets/opensb.pak
|
||||
cp -r assets/user client_distribution/assets/
|
||||
|
||||
mkdir client_distribution/mods
|
||||
touch client_distribution/mods/mods_go_here
|
||||
|
@ -1,18 +1,27 @@
|
||||
@echo off
|
||||
set dst=windows
|
||||
set client=client_distribution
|
||||
if exist %client% rmdir %client% /S /Q
|
||||
|
||||
if exist %dst% rmdir %dst% /S /Q
|
||||
mkdir %client%
|
||||
mkdir %client%\storage
|
||||
mkdir %client%\mods
|
||||
mkdir %client%\assets
|
||||
mkdir %client%\win
|
||||
|
||||
mkdir %dst%
|
||||
mkdir %dst%\storage
|
||||
mkdir %dst%\mods
|
||||
mkdir %dst%\assets
|
||||
.\dist\asset_packer.exe -c scripts\packing.config assets\opensb %client%\assets\opensb.pak
|
||||
|
||||
set bin=%dst%\win
|
||||
mkdir %bin%
|
||||
set server=server_distribution
|
||||
if exist %server% rmdir %server% /S /Q
|
||||
xcopy %client% %server% /E /I
|
||||
|
||||
.\dist\asset_packer.exe -c scripts\packing.config assets\opensb %dst%\assets\opensb.pak
|
||||
for /f "delims=" %%f in (scripts\ci\windows\files_client.txt) do (
|
||||
xcopy "%%f" "%client%\win\" /Y
|
||||
)
|
||||
|
||||
for /f "delims=" %%f in (scripts\ci\windows\files.txt) do (
|
||||
xcopy "%%f" "%bin%\" /Y
|
||||
)
|
||||
for /f "delims=" %%f in (scripts\ci\windows\files_server.txt) do (
|
||||
xcopy "%%f" "%server%\win\" /Y
|
||||
)
|
||||
|
||||
set win=windows
|
||||
xcopy %client% %win% /E /I /Y
|
||||
xcopy %server% %win% /E /I /Y
|
@ -5,8 +5,6 @@ dist\asset_unpacker.exe
|
||||
dist\asset_packer.exe
|
||||
dist\starbound.exe
|
||||
dist\starbound.pdb
|
||||
dist\starbound_server.exe
|
||||
dist\starbound_server.pdb
|
||||
dist\*.dll
|
||||
lib\windows\discord_game_sdk.dll
|
||||
lib\windows\steam_api64.dll
|
4
scripts/ci/windows/files_server.txt
Normal file
4
scripts/ci/windows/files_server.txt
Normal file
@ -0,0 +1,4 @@
|
||||
dist\btree_repacker.exe
|
||||
dist\starbound_server.exe
|
||||
dist\starbound_server.pdb
|
||||
scripts\ci\windows\sbinit.config
|
Loading…
Reference in New Issue
Block a user