diff --git a/codemagic.yaml b/codemagic.yaml new file mode 100644 index 0000000..1d25510 --- /dev/null +++ b/codemagic.yaml @@ -0,0 +1,47 @@ +workflows: + windows-release: + name: Build Windows Release + max_build_duration: 60 + instance_type: windows_x86_64 + environment: + groups: + - gitlab_credentials + node: 22.14.0 + cache: + cache_paths: + - $USERPROFILE/.cargo/registry + - $USERPROFILE/.cargo/git + - src-tauri/target + scripts: + - name: Install dependencies + script: | + npm install + - name: Build & Publish Windows Release + script: | + node release.js --installer + artifacts: + - src-tauri/target/release/bundle/nsis/*.exe + + macos-release: + name: Build macOS Release + max_build_duration: 60 + instance_type: mac_mini_m2 + environment: + groups: + - gitlab_credentials + node: 22.14.0 + cache: + cache_paths: + - $HOME/.cargo/registry + - $HOME/.cargo/git + - src-tauri/target + scripts: + - name: Install dependencies + script: | + npm install + - name: Build & Publish macOS Release + script: | + node release.js --installer + artifacts: + - src-tauri/target/release/bundle/dmg/*.dmg + - src-tauri/target/release/bundle/macos/*.app \ No newline at end of file