mirror of
https://github.com/R2Northstar/Northstar
synced 2025-09-23 06:10:50 +02:00
Compare commits
3 Commits
v1.20.0-rc
...
batch-file
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1c759c93f8 | ||
![]() |
b58ca4b41b | ||
![]() |
3905b5e22e |
20
.github/workflows/add-to-project.yml
vendored
20
.github/workflows/add-to-project.yml
vendored
@@ -1,20 +0,0 @@
|
|||||||
name: add-to-project
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
pull_request_target:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
add-to-project:
|
|
||||||
name: Add to project
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/add-to-project@v0.5.0
|
|
||||||
with:
|
|
||||||
project-url: "https://github.com/orgs/R2Northstar/projects/3"
|
|
||||||
github-token: "${{ secrets.PROJECT_BOARD_TOKEN }}"
|
|
||||||
|
|
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -20,15 +20,6 @@ jobs:
|
|||||||
build-northstar:
|
build-northstar:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout release files
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ env.NORTHSTAR_VERSION }}
|
|
||||||
path: northstar
|
|
||||||
- name: Wait for launcher release build to be ready
|
|
||||||
timeout-minutes: 30 # Only wait for 30 minutes. If we take longer, something probably broke
|
|
||||||
run:
|
|
||||||
bash northstar/wait_for_launcher_dl.sh $NORTHSTAR_VERSION
|
|
||||||
- name: Download compiled launcher
|
- name: Download compiled launcher
|
||||||
run:
|
run:
|
||||||
wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
|
wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
|
||||||
@@ -38,6 +29,11 @@ jobs:
|
|||||||
- name: Download compiled stubs
|
- name: Download compiled stubs
|
||||||
run:
|
run:
|
||||||
wget "https://github.com/R2Northstar/NorthstarStubs/releases/download/v1/NorthstarStubs.zip"
|
wget "https://github.com/R2Northstar/NorthstarStubs/releases/download/v1/NorthstarStubs.zip"
|
||||||
|
- name: Checkout release files
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ env.NORTHSTAR_VERSION }}
|
||||||
|
path: northstar
|
||||||
- name: Checkout core mods
|
- name: Checkout core mods
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -82,7 +78,7 @@ jobs:
|
|||||||
- name: Cleanup root Northstar repository files
|
- name: Cleanup root Northstar repository files
|
||||||
working-directory: northstar
|
working-directory: northstar
|
||||||
run: |
|
run: |
|
||||||
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example *.sh
|
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
17
.github/workflows/post-to-mastodon.yml
vendored
17
.github/workflows/post-to-mastodon.yml
vendored
@@ -1,17 +0,0 @@
|
|||||||
name: Post-to-Mastodon
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
toot:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Send toot to Mastodon
|
|
||||||
id: mastodon
|
|
||||||
uses: cbrgm/mastodon-github-action@v1
|
|
||||||
with:
|
|
||||||
message: "We just released Northstar ${{ github.event.release.tag_name }}\n\n${{ github.event.release.html_url }}"
|
|
||||||
env:
|
|
||||||
MASTODON_URL: ${{ secrets.MASTODON_URL }}
|
|
||||||
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
|
|
3
release/r2vanilla.bat
Normal file
3
release/r2vanilla.bat
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
:: This launches Northstar with a profile that usually shouldn't exist. As such it won't load any NorthstarMods and behave close to a vanilla client outside of patches in Launcher code
|
||||||
|
:: Disabling ClientCommands with `-norestrictservercommands` is needed for vanilla to be able to transfer you to a game from lobby with `connect`
|
||||||
|
start "NorthstarLauncher | R2Vanilla" NorthstarLauncher.exe -norestrictservercommands -profile=R2Vanilla
|
@@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Check if contains command line arg
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
echo "Missing command-line argument."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
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 -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."
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# 10 second sleep just in case we hit some weird race condition
|
|
||||||
# where files are still being uploaded but release is done
|
|
||||||
sleep 10
|
|
Reference in New Issue
Block a user