Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use release subdir for packaging release #579

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,15 @@ jobs:
git ls-tree -r $NORTHSTAR_VERSION --name-only | xargs -L1 md5sum >> md5sum.txt
- name: Make folder structure
run: |
mv -v northstar/release/* northstar/.
rm -d northstar/release
mkdir -p northstar/R2Northstar/mods
mkdir -p northstar/R2Northstar/plugins
mkdir -p northstar/bin/x64_dedi
mkdir -p northstar/release/R2Northstar/mods
mkdir -p northstar/release/R2Northstar/plugins
mkdir -p northstar/release/bin/x64_dedi

unzip northstar-discord-rpc.zip -d northstar/R2Northstar/plugins
unzip northstar-discord-rpc.zip -d northstar/release/R2Northstar/plugins

unzip NorthstarStubs.zip -d northstar/bin/x64_dedi
unzip NorthstarStubs.zip -d northstar/release/bin/x64_dedi
unzip northstar-launcher.zip -d northstar
rsync -avr --exclude="Northstar.Coop" --exclude=".git*" northstar-mods/. northstar/R2Northstar/mods
rsync -avr --exclude="Northstar.Coop" --exclude=".git*" northstar-mods/. northstar/release/R2Northstar/mods
- name: Checkout Navmesh repository
uses: actions/checkout@v3
with:
Expand All @@ -76,9 +74,9 @@ jobs:
path: northstar-navs
- name: Navmeshes setup
run: |
mkdir -p northstar/R2Northstar/mods/Northstar.CustomServers/mod/maps
mv -v northstar-navs/graphs northstar/R2Northstar/mods/Northstar.CustomServers/mod/maps
mv -v northstar-navs/navmesh northstar/R2Northstar/mods/Northstar.CustomServers/mod/maps
mkdir -p northstar/release/R2Northstar/mods/Northstar.CustomServers/mod/maps
mv -v northstar-navs/graphs northstar/release/R2Northstar/mods/Northstar.CustomServers/mod/maps
mv -v northstar-navs/navmesh northstar/release/R2Northstar/mods/Northstar.CustomServers/mod/maps
- name: Cleanup root Northstar repository files
working-directory: northstar
run: |
Expand All @@ -90,7 +88,7 @@ jobs:
path: northstar
- name: Create zip to upload
run: |
cd northstar/
cd northstar/release/
zip --recurse-paths --quiet Northstar.release.${{ env.NORTHSTAR_VERSION }}.zip .
mv Northstar.release.${{ env.NORTHSTAR_VERSION }}.zip ../
- name: Compute SHA-512 checksum
Expand Down Expand Up @@ -142,7 +140,7 @@ jobs:
- name: Make package structure
run: |
mkdir -p thunderstore/dist/Northstar
mv -v northstar/* thunderstore/dist/Northstar
mv -v northstar/release/* thunderstore/dist/Northstar
wget -O thunderstore/icon.png https://raw.githubusercontent.com/R2Northstar/Northstar/main/thunderstore/icon.png
wget -O thunderstore/README.md https://raw.githubusercontent.com/R2Northstar/Northstar/main/thunderstore/README.md

Expand Down