diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df4b228..d46c505 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: Build on: push: - branches: [ tauri ] + branches: [ tauri_v2 ] jobs: build-tauri: @@ -23,30 +23,18 @@ jobs: node-version: 21 - name: install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@nightly - name: install dependencies (ubuntu only) if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update - sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libx11-dev xorg-dev libglu1-mesa-dev libglib2.0-0 libgtk2.0-dev + sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf - - name: Cache cargo registry - uses: actions/cache@v3 + - name: Setup Cargo dependency cache + uses: Swatinem/rust-cache@v2 with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v3 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache tauri build - uses: actions/cache@v3 - with: - path: ./src-tauri/target - key: ${{ runner.os }}-tauri-build-target-${{ hashFiles('**/Cargo.lock') }} + shared-key: shared - name: install app dependencies and build it run: yarn && yarn build @@ -54,8 +42,8 @@ jobs: - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - uses: actions/upload-artifact@v3 if: matrix.platform == 'ubuntu-latest' diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8b0ae8d..7ec8149 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -47,7 +47,7 @@ "shortDescription": "A LiquidBounce launcher for Minecraft", "longDescription": "A LiquidBounce hacked-client launcher for the game Minecraft", "license": "GPL-3.0", - "licenseFile": "LICENSE", + "licenseFile": "../LICENSE", "resources": [], "targets": [ "updater",