mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 00:11:05 +00:00
Pin tauri-action to v0's commit (not its tag object); hand the downloaded bytes to tokio::fs::write
This commit is contained in:
1 parent
aedbbc7eac
commit
3551043164
7 files changed
+7
-7
No files matched your search
@@ -80,7 +80,7 @@ jobs:
|
||||
working-directory: frontend
|
||||
- run: ./node_modules/.bin/nx run artcraft:build
|
||||
working-directory: frontend
|
||||
- uses: tauri-apps/tauri-action@fce9c6108b31ea247710505d3aaaa893ee6768d4 # v0
|
||||
- uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
|
||||
with:
|
||||
projectPath: crates/desktop/artcraft
|
||||
args: --target ${{ matrix.target }} --bundles ${{ matrix.bundles }} --config ${{ github.workspace }}/packaging/linux/tauri.conf.json
|
||||
|
||||
@@ -225,7 +225,7 @@ jobs:
|
||||
|
||||
|
||||
- name: build and publish
|
||||
uses: tauri-apps/tauri-action@fce9c6108b31ea247710505d3aaaa893ee6768d4 # v0
|
||||
uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
|
||||
@@ -101,7 +101,7 @@ jobs:
|
||||
$config | ConvertTo-Json -Depth 10 | Set-Content tauri.conf.json
|
||||
|
||||
- name: build and publish
|
||||
uses: tauri-apps/tauri-action@fce9c6108b31ea247710505d3aaaa893ee6768d4 # v0
|
||||
uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
|
||||
env:
|
||||
# NB(bt): This is needed by wreq. Hopefully it doesn't kill Tauri
|
||||
RUSTFLAGS: "-C target-feature=+crt-static"
|
||||
|
||||
+1
-1
@@ -253,7 +253,7 @@ async fn download_file(
|
||||
let filename = format!("fal_{}_{}.{}", generate_random_uuid(), index, extension);
|
||||
let download_path = tempdir.join(filename);
|
||||
|
||||
tokio::fs::write(&download_path, &bytes).await?;
|
||||
tokio::fs::write(&download_path, bytes).await?;
|
||||
|
||||
Ok(download_path)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ pub async fn simple_http_download<P: AsRef<Path>>(url: &Url, download_path: P) -
|
||||
//let response : Response = reqwest::get(url).await?;
|
||||
let bytes = response.bytes().await?;
|
||||
|
||||
tokio::fs::write(download_path, &bytes).await?;
|
||||
tokio::fs::write(download_path, bytes).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
+1
-1
@@ -211,7 +211,7 @@ async fn download_generation_item(
|
||||
|
||||
info!("Writing to path: {:?}", download_path);
|
||||
|
||||
tokio::fs::write(&download_path, &image_bytes).await?;
|
||||
tokio::fs::write(&download_path, image_bytes).await?;
|
||||
|
||||
Ok(download_path)
|
||||
}
|
||||
+1
-1
@@ -376,7 +376,7 @@ async fn download_spz(
|
||||
|
||||
info!("Writing to path: {:?}", download_path);
|
||||
|
||||
tokio::fs::write(&download_path, &image_bytes).await?;
|
||||
tokio::fs::write(&download_path, image_bytes).await?;
|
||||
|
||||
Ok(download_path)
|
||||
}
|
||||
Reference in new issue
Block a user