Repository navigation
Update DLLs to patched-20261009 #144
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build-ffrunner: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Install dependencies | |
| run: sudo apt update && sudo apt install -y gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 wget | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Build | |
| run: make -C resources/ffrunner | |
| - name: Download webplayer and Vulkan DLLs | |
| working-directory: resources/ffrunner | |
| run: ./bootstrap-dlls.sh patched-20261009 | |
| - name: Upload ffrunner | |
| uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: ffrunner-mingw | |
| path: resources/ffrunner/ | |
| build-linux: | |
| needs: build-ffrunner | |
| # This runner image should stay the same, otherwise there is potential to break compatibility. | |
| # See https://v2.tauri.app/distribute/appimage/#limitations | |
| runs-on: ubuntu-22.04 | |
| env: | |
| TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: true | |
| steps: | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update && sudo apt install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| build-essential \ | |
| curl \ | |
| wget \ | |
| file \ | |
| libxdo-dev \ | |
| libssl-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev | |
| - name: Restore Tauri CLI | |
| id: cache-tauri | |
| uses: actions/cache@v4 | |
| with: | |
| path: /home/runner/.cargo | |
| key: tauri-cli-experimental-Linux | |
| - name: Install Tauri CLI | |
| if: steps.cache-tauri.outputs.cache-hit != 'true' | |
| run: cargo install tauri-cli --git https://github.com/tauri-apps/tauri --rev f0511be705661dba2e505d7a86f513f5b4dbe240 | |
| - uses: actions/checkout@v4 | |
| - name: Download ffrunner | |
| uses: actions/download-artifact@v4.1.8 | |
| with: | |
| name: ffrunner-mingw | |
| path: resources/ffrunner | |
| - name: Install NPM packages | |
| run: npm install | |
| # - name: Restore Cargo dependencies | |
| # id: cache-cargo | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: | | |
| # src-tauri/target/release/deps | |
| # src-tauri/target/release/.fingerprint | |
| # src-tauri/target/release/incremental | |
| # key: cargo-deps-Linux | |
| - name: Build | |
| run: cargo tauri build --bundles appimage | |
| - name: Package | |
| run: | | |
| cd src-tauri/target/release | |
| mkdir linux-standalone | |
| mkdir linux-appimage | |
| cp -r -t linux-standalone openfusionlauncher ffrunner.exe ffrunner64.exe d3d9_vulkan.dll d3d9_vulkan64.dll assets defaults loader loader-x64 player mono | |
| cp -r -t linux-appimage bundle/appimage/OpenFusionLauncher_*.AppImage | |
| - uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: openfusionlauncher-linux-standalone | |
| path: src-tauri/target/release/linux-standalone/ | |
| - uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: openfusionlauncher-linux-appimage | |
| path: src-tauri/target/release/linux-appimage/ | |
| build-macos: | |
| needs: build-ffrunner | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Restore Tauri CLI | |
| id: cache-tauri | |
| uses: actions/cache@v4 | |
| with: | |
| path: /Users/runner/.cargo | |
| key: tauri-cli-MacOS | |
| - name: Install Tauri CLI | |
| if: steps.cache-tauri.outputs.cache-hit != 'true' | |
| run: cargo install tauri-cli --version "^2.0.0" --locked | |
| - uses: actions/checkout@v4 | |
| - name: Download ffrunner | |
| uses: actions/download-artifact@v4.1.8 | |
| with: | |
| name: ffrunner-mingw | |
| path: resources/ffrunner | |
| - name: Install NPM packages | |
| run: npm install | |
| - name: Ensure targets for Universal binary are present | |
| run: rustup target add aarch64-apple-darwin x86_64-apple-darwin | |
| - name: Build | |
| run: cargo tauri build --bundles app dmg --target universal-apple-darwin | |
| - name: Package | |
| run: | | |
| cd src-tauri/target/universal-apple-darwin/release/ | |
| mkdir macos-universal | |
| mv bundle/macos/OpenFusionLauncher.app/ macos-universal | |
| mv bundle/dmg/OpenFusionLauncher_*.dmg macos-universal | |
| - uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: openfusionlauncher-macos-universal | |
| path: src-tauri/target/universal-apple-darwin/release/macos-universal/ | |
| build-windows: | |
| needs: build-ffrunner | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Restore Tauri CLI | |
| id: cache-tauri | |
| uses: actions/cache@v4 | |
| with: | |
| path: C:\Users\runneradmin\.cargo | |
| key: tauri-cli-Windows | |
| - name: Install Tauri CLI | |
| if: steps.cache-tauri.outputs.cache-hit != 'true' | |
| run: cargo install tauri-cli --version "^2.0.0" --locked | |
| - uses: actions/checkout@v4 | |
| - name: Download ffrunner | |
| uses: actions/download-artifact@v4.1.8 | |
| with: | |
| name: ffrunner-mingw | |
| path: resources/ffrunner | |
| - name: Install NPM packages | |
| run: npm install | |
| # - name: Restore Cargo dependencies | |
| # id: cache-cargo | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: | | |
| # src-tauri/target/release/deps | |
| # src-tauri/target/release/.fingerprint | |
| # src-tauri/target/release/incremental | |
| # key: cargo-deps-Windows | |
| - name: Build | |
| run: cargo tauri build --bundles nsis | |
| - name: Package | |
| run: | | |
| cd src-tauri/target/release | |
| mkdir windows-standalone | |
| Move-Item -Destination windows-standalone -Path openfusionlauncher.exe,ffrunner.exe,ffrunner64.exe,d3d9_vulkan.dll,d3d9_vulkan64.dll,assets,defaults,loader,loader-x64,player,mono | |
| - uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: openfusionlauncher-windows-standalone | |
| path: src-tauri/target/release/windows-standalone/ | |
| - uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: openfusionlauncher-windows-installer | |
| path: src-tauri/target/release/bundle/nsis/ |