-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathrelease.ts
27 lines (23 loc) · 1.19 KB
/
release.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { execSync } from "child_process"
import tauriConf from "../src-tauri/tauri.conf.json"
execSync(`tauri build --target aarch64-apple-darwin`, { stdio: "inherit" })
execSync(`tauri build --target x86_64-apple-darwin`, { stdio: "inherit" })
execSync(`rm -rf release && mkdir release`)
execSync(
`cp src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Dropcode.app.tar.gz release/Dropcode_${tauriConf.package.version}_aarch64.app.tar.gz`
)
execSync(
`cp src-tauri/target/aarch64-apple-darwin/release/bundle/macos/Dropcode.app.tar.gz.sig release/Dropcode_${tauriConf.package.version}_aarch64.app.tar.gz.sig`
)
execSync(
`cp src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/Dropcode_${tauriConf.package.version}_aarch64.dmg release/`
)
execSync(
`cp src-tauri/target/x86_64-apple-darwin/release/bundle/macos/Dropcode.app.tar.gz release/Dropcode_${tauriConf.package.version}_x64.app.tar.gz`
)
execSync(
`cp src-tauri/target/x86_64-apple-darwin/release/bundle/macos/Dropcode.app.tar.gz.sig release/Dropcode_${tauriConf.package.version}_x64.app.tar.gz.sig`
)
execSync(
`cp src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/Dropcode_${tauriConf.package.version}_x64.dmg release/`
)