fix: workflow

This commit is contained in:
Maarten van Heusden
2024-11-17 09:33:12 +01:00
parent a2daed0739
commit 17434ecaad
2 changed files with 18 additions and 2 deletions

View File

@@ -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 }}

View File

@@ -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.