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 }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: scripts\ci\windows\post_build.bat
|
run: scripts\ci\windows\post_build.bat
|
||||||
|
|
||||||
|
- name: Assemble Files
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
run: scripts\ci\windows\assemble.bat
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: OpenStarbound-Dev-Windows-x64
|
name: OpenStarbound-Windows
|
||||||
path: dist/*
|
path: dist/*
|
||||||
|
|
||||||
- name: Assemble Install Files
|
- name: Upload Client
|
||||||
working-directory: ${{ github.workspace }}
|
uses: actions/upload-artifact@v4
|
||||||
run: scripts\ci\windows\assemble.bat
|
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
|
- name: Create Installer
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,6 +6,8 @@
|
|||||||
/mac/
|
/mac/
|
||||||
/dist/
|
/dist/
|
||||||
/installer/
|
/installer/
|
||||||
|
/client_distribution/
|
||||||
|
/server_distribution/
|
||||||
enc_temp_folder/
|
enc_temp_folder/
|
||||||
.cache/
|
.cache/
|
||||||
/attic/user/
|
/attic/user/
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
mkdir client_distribution
|
mkdir client_distribution
|
||||||
mkdir client_distribution/assets
|
mkdir client_distribution/assets
|
||||||
|
mkdir client_distribution/assets/user
|
||||||
|
|
||||||
./dist/asset_packer -c scripts/packing.config assets/opensb client_distribution/assets/opensb.pak
|
./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
|
mkdir client_distribution/mods
|
||||||
touch client_distribution/mods/mods_go_here
|
touch client_distribution/mods/mods_go_here
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
mkdir client_distribution
|
mkdir client_distribution
|
||||||
mkdir client_distribution/assets
|
mkdir client_distribution/assets
|
||||||
|
mkdir client_distribution/assets/user
|
||||||
|
|
||||||
./dist/asset_packer -c scripts/packing.config assets/opensb client_distribution/assets/opensb.pak
|
./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
|
mkdir client_distribution/mods
|
||||||
touch client_distribution/mods/mods_go_here
|
touch client_distribution/mods/mods_go_here
|
||||||
|
@ -1,18 +1,27 @@
|
|||||||
@echo off
|
@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%
|
.\dist\asset_packer.exe -c scripts\packing.config assets\opensb %client%\assets\opensb.pak
|
||||||
mkdir %dst%\storage
|
|
||||||
mkdir %dst%\mods
|
|
||||||
mkdir %dst%\assets
|
|
||||||
|
|
||||||
set bin=%dst%\win
|
set server=server_distribution
|
||||||
mkdir %bin%
|
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 (
|
for /f "delims=" %%f in (scripts\ci\windows\files_server.txt) do (
|
||||||
xcopy "%%f" "%bin%\" /Y
|
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\asset_packer.exe
|
||||||
dist\starbound.exe
|
dist\starbound.exe
|
||||||
dist\starbound.pdb
|
dist\starbound.pdb
|
||||||
dist\starbound_server.exe
|
|
||||||
dist\starbound_server.pdb
|
|
||||||
dist\*.dll
|
dist\*.dll
|
||||||
lib\windows\discord_game_sdk.dll
|
lib\windows\discord_game_sdk.dll
|
||||||
lib\windows\steam_api64.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