1
mirror of https://github.com/R2Northstar/Northstar synced 2025-10-17 16:52:13 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
GeckoEidechse
956839c4e2 build: Use release subdir for packaging release
To avoid accidentally bundling unwanted files etc
2023-11-02 16:53:21 +01:00
GeckoEidechse
de87f41b45 Delete bash scripts in project root as well (#578)
Delete bash scripts in project root as well to prevent wait script from being included in release files
2023-11-02 13:32:13 +01:00
GeckoEidechse
d6d2dfe47d Use dl link instead of release page in wait script
Use the download link instead of the release link in wait script as
release link becomes valid on tag creation before download is ready.
2023-11-02 13:09:38 +01:00
2 changed files with 15 additions and 17 deletions

View File

@@ -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:
@@ -76,13 +74,13 @@ 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: |
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example *.sh
- name: Upload
uses: actions/upload-artifact@v3
with:
@@ -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
@@ -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

View File

@@ -6,14 +6,14 @@ if [ -z "$1" ]; then
exit 1
fi
url="https://github.com/R2Northstar/NorthstarLauncher/releases/tag/$1"
url="https://github.com/R2Northstar/NorthstarLauncher/releases/download/$1/northstar-launcher.zip"
wait_time_seconds=60
# Loop until the response code changes
while true; do
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
if [ $response -ne 200 ]; then
echo "Response is not 200. Retrying in $wait_time_seconds seconds."
if [ $response -eq 404 ]; then
echo "Response is 404. Retrying in $wait_time_seconds seconds."
sleep $wait_time_seconds
else
echo "Site is accessible with response code $response."