Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Use RUST_TARGET_TRIPLE in CI and build script

Richie McIlroy07beb3fcd1e5
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 838dddb4d..02468fa73 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -260,6 +260,7 @@ jobs:
APPLE_KEYCHAIN: ${{ runner.temp }}/build.keychain
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
+ RUST_TARGET_TRIPLE: ${{ matrix.settings.target }}
- name: Upload unsigned Windows installer
if: ${{ runner.os == 'Windows' }}
diff --git a/scripts/build-cap-muxer.mjs b/scripts/build-cap-muxer.mjs
index 55f08b827..c8224efc8 100644
--- a/scripts/build-cap-muxer.mjs
+++ b/scripts/build-cap-muxer.mjs
@@ -62,7 +62,8 @@ async function isUpToDate(destPath, sourcePaths) {
}
async function main() {
- const target = process.argv[2] || detectHostTriple();
+ const target =
+ process.argv[2] || process.env.RUST_TARGET_TRIPLE || detectHostTriple();
const ext = target.includes("windows") ? ".exe" : "";
const src = path.join(
repoRoot,