mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
Compare commits
15 commits
46ca02ace7
...
4631fcf859
Author | SHA1 | Date | |
---|---|---|---|
|
4631fcf859 | ||
|
01807fedc9 | ||
|
22a11b96e2 | ||
|
6679a690a2 | ||
|
ebd4c920f5 | ||
|
71f56ef49e | ||
|
1af10eea7f | ||
|
37fb2a3ddf | ||
|
d86830028e | ||
|
179c3033ba | ||
|
8903fa0dff | ||
|
ba601d8855 | ||
|
23138cfc99 | ||
|
9660667888 | ||
|
e4049f4b81 |
12 changed files with 322 additions and 297 deletions
12
.github/actions/build-debug-info-post/action.yml
vendored
12
.github/actions/build-debug-info-post/action.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Prepare for Build Debug Info
|
name: Prepare for Build Debug Info
|
||||||
description: Provides debug info for the build process
|
description: Provides debug info for the build process
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -16,7 +16,15 @@ runs:
|
||||||
cd build
|
cd build
|
||||||
sed 's/\\\\/\//g' compile_commands.json | sed 's/D:\//\/d\//' > uni_compile_commands.json
|
sed 's/\\\\/\//g' compile_commands.json | sed 's/D:\//\/d\//' > uni_compile_commands.json
|
||||||
pip install compile-commands --break-system-packages
|
pip install compile-commands --break-system-packages
|
||||||
compile-commands --file=uni_compile_commands.json --filter_files='.*info\.rc.*' --filter='(.*) -o (.*)((?:/|\\).*)\.(?:obj|o) -c (.*)' --replacement="$BASH"' --noprofile --norc -c "mkdir -p ../build-debug-info-preprocessed/\g<2> && \g<1> -o ../build-debug-info-preprocessed/\g<2>\g<3>.i -E \g<4>"' -o ../build-debug-info/preprocess_commands.json --run --verbose
|
compile-commands --file=uni_compile_commands.json \
|
||||||
|
--filter_files='.*info\.rc.*' \
|
||||||
|
--filter='(.*) -o (.*)((?:/|\\).*)\.(?:obj|o) -c (.*)' \
|
||||||
|
--replacement="$BASH" \
|
||||||
|
--noprofile --norc -c "\
|
||||||
|
mkdir -p ../build-debug-info-preprocessed/\g<2> && \
|
||||||
|
\g<1> -o ../build-debug-info-preprocessed/\g<2>\g<3>.i -E \g<4>"' \
|
||||||
|
-o ../build-debug-info/preprocess_commands.json \
|
||||||
|
--run --verbose
|
||||||
|
|
||||||
- name: Upload Build Debug Info
|
- name: Upload Build Debug Info
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
6
.github/actions/build-debug-info/action.yml
vendored
6
.github/actions/build-debug-info/action.yml
vendored
|
@ -1,16 +1,18 @@
|
||||||
name: Prepare for Build Debug Info
|
name: Prepare for Build Debug Info
|
||||||
description: Provides debug info for the build process
|
description: Provides debug info for the build process
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
has-sccache:
|
has-sccache:
|
||||||
description: 'Whether the build action has sccache'
|
description: 'Whether the build action has sccache'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
extra-configure:
|
extra-configure:
|
||||||
description: 'Extra stuff for CMake configure step'
|
description: 'Extra stuff for CMake configure step'
|
||||||
value: |
|
value: |
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
cp ./build/compile_commands.json ./build-debug-info/
|
cp ./build/compile_commands.json ./build-debug-info/
|
||||||
|
|
||||||
extra-build:
|
extra-build:
|
||||||
description: 'Extra stuff for CMake build step'
|
description: 'Extra stuff for CMake build step'
|
||||||
value: |
|
value: |
|
||||||
|
@ -28,7 +30,7 @@ runs:
|
||||||
echo "SCCACHE_LOG=debug" >> $GITHUB_ENV
|
echo "SCCACHE_LOG=debug" >> $GITHUB_ENV
|
||||||
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
|
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout ninjatracing
|
- name: Checkout ninjatracing repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: 'nico/ninjatracing'
|
repository: 'nico/ninjatracing'
|
||||||
|
|
52
.github/workflows/build.yml
vendored
52
.github/workflows/build.yml
vendored
|
@ -36,7 +36,7 @@ jobs:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -64,7 +64,7 @@ jobs:
|
||||||
uses: geode-sdk/cli/.github/actions/setup@main
|
uses: geode-sdk/cli/.github/actions/setup@main
|
||||||
|
|
||||||
- name: Download xwin
|
- name: Download xwin
|
||||||
uses: robinraju/release-downloader@v1.10
|
uses: robinraju/release-downloader@v1
|
||||||
with:
|
with:
|
||||||
repository: Jake-Shadle/xwin
|
repository: Jake-Shadle/xwin
|
||||||
latest: true
|
latest: true
|
||||||
|
@ -79,8 +79,6 @@ jobs:
|
||||||
mv epic-xwin/xwin-*-x86_64-unknown-linux-musl/xwin ./xwin
|
mv epic-xwin/xwin-*-x86_64-unknown-linux-musl/xwin ./xwin
|
||||||
./xwin --arch x86_64 --sdk-version 10.0.22621 --accept-license list
|
./xwin --arch x86_64 --sdk-version 10.0.22621 --accept-license list
|
||||||
|
|
||||||
# this caches '.xwin-cache/**/*' but that's actually only gonna
|
|
||||||
# contain the manifest cuz we only ran `xwin list` so far
|
|
||||||
- name: Setup xwin Cache
|
- name: Setup xwin Cache
|
||||||
id: xwin-cache
|
id: xwin-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
@ -111,18 +109,18 @@ jobs:
|
||||||
${{ env.base-build-command }}
|
${{ env.base-build-command }}
|
||||||
${{ steps.build-debug-info.outputs.extra-build }}
|
${{ steps.build-debug-info.outputs.extra-build }}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-win
|
name: geode-win
|
||||||
path: ./bin/nightly
|
path: ./bin/nightly
|
||||||
|
|
||||||
- name: Package Installer
|
- name: Package installer
|
||||||
run: |
|
run: |
|
||||||
sudo apt install nsis
|
sudo apt install nsis
|
||||||
makensis -WX -V3 ./installer/windows/installer.nsi
|
makensis -WX -V3 ./installer/windows/installer.nsi
|
||||||
|
|
||||||
- name: Upload Installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-installer-win
|
name: geode-installer-win
|
||||||
|
@ -142,7 +140,7 @@ jobs:
|
||||||
SCCACHE_CACHE_MULTIARCH: 1
|
SCCACHE_CACHE_MULTIARCH: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -154,8 +152,7 @@ jobs:
|
||||||
has-sccache: ${{ inputs.use-ccache }}
|
has-sccache: ${{ inputs.use-ccache }}
|
||||||
if: inputs.build-debug-info
|
if: inputs.build-debug-info
|
||||||
|
|
||||||
# due to very strange performance issues, sccache is currently disabled for macos. sorry
|
# macOS does not currently support sccache due to performance issues
|
||||||
|
|
||||||
# - name: Setup caches
|
# - name: Setup caches
|
||||||
# uses: ./.github/actions/setup-cache
|
# uses: ./.github/actions/setup-cache
|
||||||
# with:
|
# with:
|
||||||
|
@ -186,16 +183,16 @@ jobs:
|
||||||
${{ env.base-build-command }}
|
${{ env.base-build-command }}
|
||||||
${{ steps.build-debug-info.outputs.extra-build }}
|
${{ steps.build-debug-info.outputs.extra-build }}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-mac
|
name: geode-mac
|
||||||
path: ./bin/nightly
|
path: ./bin/nightly
|
||||||
|
|
||||||
- name: Package Installer
|
- name: Package installer
|
||||||
run: ./installer/mac/package.sh ./bin/nightly ./installer/mac/geode-installer-mac.pkg
|
run: ./installer/mac/package.sh ./bin/nightly ./installer/mac/geode-installer-mac.pkg
|
||||||
|
|
||||||
- name: Upload Installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-installer-mac
|
name: geode-installer-mac
|
||||||
|
@ -215,7 +212,6 @@ jobs:
|
||||||
- name: Android (32-bit)
|
- name: Android (32-bit)
|
||||||
id: android32
|
id: android32
|
||||||
extra-configure: -DANDROID_ABI=armeabi-v7a
|
extra-configure: -DANDROID_ABI=armeabi-v7a
|
||||||
|
|
||||||
- name: Android (64-bit)
|
- name: Android (64-bit)
|
||||||
id: android64
|
id: android64
|
||||||
extra-configure: -DANDROID_ABI=arm64-v8a
|
extra-configure: -DANDROID_ABI=arm64-v8a
|
||||||
|
@ -224,7 +220,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -277,13 +273,12 @@ jobs:
|
||||||
${{ env.base-build-command }}
|
${{ env.base-build-command }}
|
||||||
${{ steps.build-debug-info.outputs.extra-build }}
|
${{ steps.build-debug-info.outputs.extra-build }}
|
||||||
|
|
||||||
# hardcoding toolchain path :(
|
- name: Dump symbols
|
||||||
- name: Dump Symbols
|
|
||||||
run: |
|
run: |
|
||||||
${{ steps.breakpad-tools.outputs.binary-path }} ./bin/nightly/Geode.${{ matrix.config.id }}.so -o ./bin/nightly/Geode.${{ matrix.config.id }}.so.sym
|
${{ steps.breakpad-tools.outputs.binary-path }} ./bin/nightly/Geode.${{ matrix.config.id }}.so -o ./bin/nightly/Geode.${{ matrix.config.id }}.so.sym
|
||||||
$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip ./bin/nightly/Geode.${{ matrix.config.id }}.so
|
$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip ./bin/nightly/Geode.${{ matrix.config.id }}.so
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-${{ matrix.config.id }}
|
name: geode-${{ matrix.config.id }}
|
||||||
|
@ -300,55 +295,56 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ build-windows, build-mac, build-android ]
|
needs: [ build-windows, build-mac, build-android ]
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Declare Version Variables
|
- name: Declare version variables
|
||||||
id: ref
|
id: ref
|
||||||
run: |
|
run: |
|
||||||
echo "version=$(cat VERSION | xargs)" >> $GITHUB_OUTPUT
|
echo "version=$(cat VERSION | xargs)" >> $GITHUB_OUTPUT
|
||||||
echo "hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
|
echo "hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Download Artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Move Installers
|
- name: Move installers
|
||||||
run: |
|
run: |
|
||||||
mv geode-installer-mac/geode-installer-mac.pkg geode-installer-${{ steps.ref.outputs.hash }}-mac.pkg
|
mv geode-installer-mac/geode-installer-mac.pkg geode-installer-${{ steps.ref.outputs.hash }}-mac.pkg
|
||||||
mv geode-installer-win/geode-installer-win.exe geode-installer-${{ steps.ref.outputs.hash }}-win.exe
|
mv geode-installer-win/geode-installer-win.exe geode-installer-${{ steps.ref.outputs.hash }}-win.exe
|
||||||
|
|
||||||
- name: Zip MacOS Artifacts
|
- name: Zip MacOS artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-mac/Geode.dylib geode-mac/GeodeBootstrapper.dylib
|
files: geode-mac/Geode.dylib geode-mac/GeodeBootstrapper.dylib
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-mac.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-mac.zip
|
||||||
|
|
||||||
- name: Zip Windows Artifacts
|
- name: Zip Windows artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-win/XInput1_4.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib geode-win/Geode.pdb
|
files: geode-win/XInput1_4.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib geode-win/Geode.pdb
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-win.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-win.zip
|
||||||
|
|
||||||
- name: Zip Android32 Artifacts
|
- name: Zip Android32 artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-android32/Geode.android32.so geode-android32/Geode.android32.so.sym
|
files: geode-android32/Geode.android32.so geode-android32/Geode.android32.so.sym
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-android32.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-android32.zip
|
||||||
|
|
||||||
- name: Zip Android64 Artifacts
|
- name: Zip Android64 artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-android64/Geode.android64.so geode-android64/Geode.android64.so.sym
|
files: geode-android64/Geode.android64.so geode-android64/Geode.android64.so.sym
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-android64.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-android64.zip
|
||||||
|
|
||||||
- name: Zip Resources
|
- name: Zip resources
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-android64/resources
|
files: geode-android64/resources
|
||||||
dest: resources.zip
|
dest: resources.zip
|
||||||
|
|
||||||
- name: Update Development Release
|
- name: Update development release
|
||||||
uses: andelf/nightly-release@main
|
uses: andelf/nightly-release@main
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
18
.github/workflows/check-changelog.yml
vendored
18
.github/workflows/check-changelog.yml
vendored
|
@ -1,5 +1,4 @@
|
||||||
# check the changelog for non ascii characters
|
name: Check Changelog
|
||||||
name: Check CHANGELOG.md
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -11,16 +10,19 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check CHANGELOG.md
|
name: Check Changelog
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- run: |
|
- name: Check for non-ASCII characters in changelog
|
||||||
if grep -q -P -n "[\x80-\xFF]" CHANGELOG.md
|
run: |
|
||||||
then
|
if grep -q -P -n "[\x80-\xFF]" CHANGELOG.md; then
|
||||||
exit 1;
|
echo "Non-ASCII characters found in CHANGELOG.md"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "No non-ASCII characters found in CHANGELOG.md"
|
||||||
fi
|
fi
|
||||||
|
|
21
.github/workflows/draft.yml
vendored
21
.github/workflows/draft.yml
vendored
|
@ -7,9 +7,10 @@ jobs:
|
||||||
draft:
|
draft:
|
||||||
name: Draft Release
|
name: Draft Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download Development Release
|
- name: Download development release
|
||||||
uses: robinraju/release-downloader@v1.9
|
uses: robinraju/release-downloader@v1
|
||||||
with:
|
with:
|
||||||
tag: nightly
|
tag: nightly
|
||||||
fileName: '*'
|
fileName: '*'
|
||||||
|
@ -17,14 +18,14 @@ jobs:
|
||||||
zipBall: true
|
zipBall: true
|
||||||
out-file-path: 'dev'
|
out-file-path: 'dev'
|
||||||
|
|
||||||
- name: Declare Version Variable
|
- name: Declare version variable
|
||||||
id: ref
|
id: ref
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(unzip -p ${{ github.workspace }}/dev/geode-nightly.zip geode-sdk-geode-*/VERSION | xargs)
|
VERSION=$(unzip -p ${{ github.workspace }}/dev/geode-nightly.zip geode-sdk-geode-*/VERSION | xargs)
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# test if release already exists
|
# Test if release already exists
|
||||||
set +e
|
set +e
|
||||||
curl --fail "https://api.github.com/repos/geode-sdk/geode/releases/tags/v$VERSION" --silent --output /dev/null
|
curl --fail "https://api.github.com/repos/geode-sdk/geode/releases/tags/v$VERSION" --silent --output /dev/null
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
@ -35,7 +36,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Move Files
|
- name: Move files
|
||||||
run: |
|
run: |
|
||||||
mv dev/geode-installer-*-win.exe geode-installer-v${{ steps.ref.outputs.version }}-win.exe
|
mv dev/geode-installer-*-win.exe geode-installer-v${{ steps.ref.outputs.version }}-win.exe
|
||||||
mv dev/geode-installer-*-mac.pkg geode-installer-v${{ steps.ref.outputs.version }}-mac.pkg
|
mv dev/geode-installer-*-mac.pkg geode-installer-v${{ steps.ref.outputs.version }}-mac.pkg
|
||||||
|
@ -45,8 +46,8 @@ jobs:
|
||||||
mv dev/geode-*-android64.zip geode-v${{ steps.ref.outputs.version }}-android64.zip
|
mv dev/geode-*-android64.zip geode-v${{ steps.ref.outputs.version }}-android64.zip
|
||||||
mv dev/resources.zip resources.zip
|
mv dev/resources.zip resources.zip
|
||||||
|
|
||||||
- name: Create Draft Release
|
- name: Create draft release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -54,9 +55,9 @@ jobs:
|
||||||
name: Geode v${{ steps.ref.outputs.version }}
|
name: Geode v${{ steps.ref.outputs.version }}
|
||||||
body: |
|
body: |
|
||||||
TODO before publishing:
|
TODO before publishing:
|
||||||
- mark if pre-release
|
- Mark if pre-release
|
||||||
- add changelog
|
- Add changelog
|
||||||
- remove this
|
- Remove this
|
||||||
draft: true
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
./geode-installer-v${{ steps.ref.outputs.version }}-win.exe
|
./geode-installer-v${{ steps.ref.outputs.version }}-win.exe
|
||||||
|
|
10
.github/workflows/update-site.yml
vendored
10
.github/workflows/update-site.yml
vendored
|
@ -1,20 +1,16 @@
|
||||||
# Update the install page on the geode-sdk/website repository
|
|
||||||
name: Update Website
|
name: Update Website
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# # trigger when a new release is released
|
|
||||||
# release:
|
|
||||||
# types:
|
|
||||||
# - released
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: Trigger site build
|
name: Trigger site build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v7
|
- name: Trigger build workflow on geode-sdk/website repository
|
||||||
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GEODE_BOT_PUSH_BIN_TOKEN }}
|
github-token: ${{ secrets.GEODE_BOT_PUSH_BIN_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|
|
@ -10,10 +10,9 @@
|
||||||
* Rewritten matjson library
|
* Rewritten matjson library
|
||||||
* Settings V2 completely removed, use V3 now
|
* Settings V2 completely removed, use V3 now
|
||||||
* `JsonChecker` removed
|
* `JsonChecker` removed
|
||||||
* Add new system for ordered hook priority (673317d, 6db3084)
|
* Add new system for ordered hook priority, [see docs](https://docs.geode-sdk.org/tutorials/hookpriority) (673317d, 6db3084)
|
||||||
* See docs: LINK HERE!!
|
|
||||||
* C++20 coroutine support for `geode::Task`, [see docs](https://docs.geode-sdk.org/tutorials/tasks#coroutines) (e61b2c0, ab196b9)
|
* C++20 coroutine support for `geode::Task`, [see docs](https://docs.geode-sdk.org/tutorials/tasks#coroutines) (e61b2c0, ab196b9)
|
||||||
* Add `Task::chain`, [see docs](https://docs.geode-sdk.org/tutorials/tasks#chaining-tasks)
|
* Add `Task::chain`, [see docs](https://docs.geode-sdk.org/tutorials/tasks#chaining-tasks) (3248831)
|
||||||
* Single page local mods list (efb1fbf)
|
* Single page local mods list (efb1fbf)
|
||||||
* Split mod problems into load and outdated (12e8bbb, 09fa872, df2528c)
|
* Split mod problems into load and outdated (12e8bbb, 09fa872, df2528c)
|
||||||
* This means mods made for outdated gd or geode versions no longer count as actual errors, resulting in less clutter in the ui
|
* This means mods made for outdated gd or geode versions no longer count as actual errors, resulting in less clutter in the ui
|
||||||
|
|
|
@ -817,7 +817,7 @@ namespace geode {
|
||||||
// make the second event listener that waits for the mapper's task
|
// make the second event listener that waits for the mapper's task
|
||||||
// and just forwards everything through
|
// and just forwards everything through
|
||||||
static_cast<void*>(new EventListener<NewTask>(
|
static_cast<void*>(new EventListener<NewTask>(
|
||||||
[handle](Event* event) mutable {
|
[handle](typename NewTask::Event* event) mutable {
|
||||||
if (auto v = event->getValue()) {
|
if (auto v = event->getValue()) {
|
||||||
NewTask::finish(handle.lock(), std::move(*v));
|
NewTask::finish(handle.lock(), std::move(*v));
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
struct XINPUT_STATE;
|
struct XINPUT_STATE;
|
||||||
struct XINPUT_CAPABILITIES;
|
struct XINPUT_CAPABILITIES;
|
||||||
|
struct XINPUT_VIBRATION;
|
||||||
|
|
||||||
constexpr static auto MAX_PATH_CHARS = 32768u;
|
constexpr static auto MAX_PATH_CHARS = 32768u;
|
||||||
|
|
||||||
|
@ -41,6 +42,17 @@ extern "C" DWORD XInputGetState(DWORD dwUserIndex, XINPUT_STATE *pState) {
|
||||||
return ERROR_DEVICE_NOT_CONNECTED;
|
return ERROR_DEVICE_NOT_CONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma comment(linker, "/export:XInputSetState,@3")
|
||||||
|
extern "C" DWORD XInputSetState(DWORD dwUserIndex, XINPUT_VIBRATION* pVibration) {
|
||||||
|
static auto fp = getFP("XInputSetState");
|
||||||
|
if (fp) {
|
||||||
|
using FPType = decltype(&XInputSetState);
|
||||||
|
return reinterpret_cast<FPType>(fp)(dwUserIndex, pVibration);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ERROR_DEVICE_NOT_CONNECTED;
|
||||||
|
}
|
||||||
|
|
||||||
#pragma comment(linker, "/export:XInputGetCapabilities,@4")
|
#pragma comment(linker, "/export:XInputGetCapabilities,@4")
|
||||||
extern "C" DWORD XInputGetCapabilities(DWORD dwUserIndex, DWORD dwFlags, XINPUT_CAPABILITIES *pCapabilities) {
|
extern "C" DWORD XInputGetCapabilities(DWORD dwUserIndex, DWORD dwFlags, XINPUT_CAPABILITIES *pCapabilities) {
|
||||||
static auto fp = getFP("XInputGetCapabilities");
|
static auto fp = getFP("XInputGetCapabilities");
|
||||||
|
|
|
@ -8,6 +8,10 @@ $execute {
|
||||||
// this is needed because the transitions in cocos uses dynamic cast to check
|
// this is needed because the transitions in cocos uses dynamic cast to check
|
||||||
// layers, which fail on user layers due to typeinfo not matching
|
// layers, which fail on user layers due to typeinfo not matching
|
||||||
|
|
||||||
|
#if defined(GEODE_IS_MAC) && GEODE_COMP_GD_VERSION != 22074
|
||||||
|
#error "Unsupported version for macOS dynamic cast fix, please update the addresses"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(GEODE_IS_INTEL_MAC)
|
#if defined(GEODE_IS_INTEL_MAC)
|
||||||
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x7ba1d8);
|
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x7ba1d8);
|
||||||
(void) Mod::get()->hook(dynamicCastAddr, &cast::typeinfoCastInternal, "__dynamic_cast");
|
(void) Mod::get()->hook(dynamicCastAddr, &cast::typeinfoCastInternal, "__dynamic_cast");
|
||||||
|
|
|
@ -330,9 +330,10 @@ void ModItem::updateState() {
|
||||||
auto wantsRestart = m_source.wantsRestart();
|
auto wantsRestart = m_source.wantsRestart();
|
||||||
|
|
||||||
auto download = server::ModDownloadManager::get()->getDownload(m_source.getID());
|
auto download = server::ModDownloadManager::get()->getDownload(m_source.getID());
|
||||||
|
bool isDownloading = download && download->isActive();
|
||||||
|
|
||||||
// If there is an active download ongoing, show that in place of developer name
|
// If there is an active download ongoing, show that in place of developer name
|
||||||
if (download && download->isActive()) {
|
if (isDownloading) {
|
||||||
m_updateBtn->setVisible(false);
|
m_updateBtn->setVisible(false);
|
||||||
m_restartRequiredLabel->setVisible(false);
|
m_restartRequiredLabel->setVisible(false);
|
||||||
m_developers->setVisible(false);
|
m_developers->setVisible(false);
|
||||||
|
@ -431,7 +432,7 @@ void ModItem::updateState() {
|
||||||
m_bg->setColor("mod-list-errors-found"_cc3b);
|
m_bg->setColor("mod-list-errors-found"_cc3b);
|
||||||
m_bg->setOpacity(isGeodeTheme() ? 25 : 90);
|
m_bg->setOpacity(isGeodeTheme() ? 25 : 90);
|
||||||
}
|
}
|
||||||
if (!wantsRestart && targetsOutdated) {
|
if (!wantsRestart && targetsOutdated && !isDownloading) {
|
||||||
LoadProblem problem = targetsOutdated.value();
|
LoadProblem problem = targetsOutdated.value();
|
||||||
m_bg->setColor("mod-list-outdated-label"_cc3b);
|
m_bg->setColor("mod-list-outdated-label"_cc3b);
|
||||||
m_bg->setOpacity(isGeodeTheme() ? 25 : 90);
|
m_bg->setOpacity(isGeodeTheme() ? 25 : 90);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include <Geode/ui/GeodeUI.hpp>
|
#include <Geode/ui/GeodeUI.hpp>
|
||||||
#include <server/DownloadManager.hpp>
|
#include <server/DownloadManager.hpp>
|
||||||
#include <Geode/binding/GameObject.hpp>
|
#include <Geode/binding/GameObject.hpp>
|
||||||
|
#include <unordered_set>
|
||||||
|
|
||||||
LoadModSuggestionTask loadModSuggestion(LoadProblem const& problem) {
|
LoadModSuggestionTask loadModSuggestion(LoadProblem const& problem) {
|
||||||
// Recommended / suggested are essentially the same thing for the purposes of this
|
// Recommended / suggested are essentially the same thing for the purposes of this
|
||||||
|
@ -183,19 +184,22 @@ server::ServerRequest<std::unordered_set<std::string>> ModSource::fetchValidTags
|
||||||
return std::visit(makeVisitor {
|
return std::visit(makeVisitor {
|
||||||
[](Mod* mod) {
|
[](Mod* mod) {
|
||||||
return server::getTags().map(
|
return server::getTags().map(
|
||||||
[mod](auto* result) -> Result<std::unordered_set<std::string>, server::ServerError> {
|
[mod](Result<std::unordered_set<std::string>, server::ServerError>* result)
|
||||||
if (result->isOk()) {
|
-> Result<std::unordered_set<std::string>, server::ServerError> {
|
||||||
// Filter out invalid tags
|
std::unordered_set<std::string> finalTags;
|
||||||
auto modTags = mod->getMetadata().getTags();
|
auto modTags = mod->getMetadata().getTags();
|
||||||
auto finalTags = std::unordered_set<std::string>();
|
|
||||||
for (auto& tag : modTags) {
|
if (result->isOk()) {
|
||||||
if (result->unwrap().contains(tag)) {
|
std::unordered_set<std::string> fetched = result->unwrap();
|
||||||
|
// Filter out invalid tags
|
||||||
|
for (std::string const& tag : modTags) {
|
||||||
|
if (fetched.contains(tag)) {
|
||||||
finalTags.insert(tag);
|
finalTags.insert(tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Ok(finalTags);
|
|
||||||
}
|
}
|
||||||
return Ok(result->unwrap());
|
|
||||||
|
return Ok(finalTags);
|
||||||
},
|
},
|
||||||
[](server::ServerProgress* progress) {
|
[](server::ServerProgress* progress) {
|
||||||
return *progress;
|
return *progress;
|
||||||
|
|
Loading…
Reference in a new issue