diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1267560d..38b75acf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,8 +56,23 @@ jobs: run: pnpm install # change this to npm or pnpm depending on which one you use. - uses: tauri-apps/tauri-action@v0 + id: build env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: args: ${{ matrix.args }} includeUpdaterJson: false + + - name: upload unix artifacts + if: matrix.platform == 'macos-latest' || matrix.platform == 'ubuntu-22.04' + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: ${{ steps.build.outputs.artifactPaths }} + + - name: upload windows artifacts + if: matrix.platform == 'windows-latest' + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: ${{ steps.build.outputs.artifactPaths }} \ No newline at end of file diff --git a/src-tauri/src/depotdownloader.rs b/src-tauri/src/depotdownloader.rs index 52707413..d6b14b58 100644 --- a/src-tauri/src/depotdownloader.rs +++ b/src-tauri/src/depotdownloader.rs @@ -71,8 +71,9 @@ pub fn unzip(zip_file: &Path) -> io::Result<()> { io::copy(&mut file, &mut outfile)?; - // Copy over permissions from enclosed file to extracted file on Unix and macOS systems. - if get_os() != "windows" { + // Copy over permissions from enclosed file to extracted file on UNIX systems. + #[cfg(unix)] + { use std::os::unix::fs::PermissionsExt; // If the mode `file.unix_mode()` is something (not None), copy it over to the extracted file.