Skip to content

Commit

Permalink
wip: testing compile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Oct 26, 2023
1 parent 511e1c9 commit 08b8b07
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ jobs:
include:
- os: ubuntu-22.04
name: linux
targets: "aarch64-apple-darwin,x86_64-apple-darwin"
tauri_target: "universal-apple-darwin"
- os: macos-latest
name: mac
targets: "aarch64-apple-darwin,x86_64-apple-darwin"
tauri_target: "universal-apple-darwin"
- os: windows-latest
name: win
targets: "aarch64-apple-darwin,x86_64-apple-darwin"
tauri_target: "universal-apple-darwin"

steps:
- uses: actions/checkout@v2
Expand All @@ -27,6 +33,10 @@ jobs:
cache: "yarn"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './app/tauri -> target'
- name: install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-22.04'
run: |
Expand All @@ -36,7 +46,7 @@ jobs:
run: |
yarn install --immutable --network-timeout 120000
- name: Build
run: yarn build:tauri
run: yarn build:tauri --verbose
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
Expand Down
43 changes: 43 additions & 0 deletions app/tauri/update-file/updater-file.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
const fs = require("fs");

const github_url =
"https://github.com/zidoro/pomatez/releases/download/v1.0.0/";

const data = {
version: "v1.0.0",
notes: "Test version",
pub_date: "2020-06-22T19:25:57Z",
platforms: {
"darwin-x86_64": {
signature: "Content of app.tar.gz.sig",
url: `${github_url}app-x86_64.app.tar.gz`,
},
"darwin-aarch64": {
signature: "Content of app.tar.gz.sig",
url: `${github_url}app-aarch64.app.tar.gz`,
},
"linux-x86_64": {
signature: "Content of app.AppImage.tar.gz.sig",
url: `${github_url}app-amd64.AppImage.tar.gz`,
},
"linux-aarch64": {
signature: "Content of app.AppImage.tar.gz.sig",
url: `${github_url}app-amd64.AppImage.tar.gz`,
},
"windows-x86_64": {
signature:
"Content of app-setup.nsis.sig or app.msi.sig, depending on the chosen format",
url: `${github_url}app-x64-setup.nsis.zip`,
},
"windows-aarch64": {
signature:
"Content of app-setup.nsis.sig or app.msi.sig, depending on the chosen format",
url: `${github_url}app-x64-setup.nsis.zip`,
},
},
};

fs.writeFile("output.json", JSON.stringify(data, null, 2), (err) => {
if (err) throw err;
console.log("Data written to file");
});

0 comments on commit 08b8b07

Please sign in to comment.