This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
makefile
41 lines (31 loc) · 1.43 KB
/
makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
dev-tauri:
npm install && RUST_DEBUT=1 yarn tauri dev
dev-web:wasm
cd web-src && make dev
build-web:wasm
cd web-src && make build
build-bundle: c wasm
cd web-src && make build-web && cd .. && cargo tauri build --target universal-apple-darwin
build-debug-bundle: c wasm
cd web-src && make build-web && cd .. && cargo tauri build --debug --target universal-apple-darwin
wasm:
cd wasm-api && wasm-pack build && cd ../web-src && npm install --force && cd ..
test-wasm:
cd wasm-api && sudo cargo watch -s "wasm-pack test --headless --chrome"
c:
cargo install tauri-cli
cargo clippy --fix --allow-dirty --allow-staged
icon:
npm global add git+https://github.com/tauri-apps/tauricon.git
npm icon
gh: wasm
cd ./web-src && make deploy
TARGET_PATH_BASE = target/universal-apple-darwin/release/bundle/macos/Echoo
APP_SIGN_IDENTITY = "3rd Party Mac Developer Application: Chiang Hwang (6T8X94ZY3T)"
INSTALLER_SIGN_IDENTITY = "3rd Party Mac Developer Installer: Chiang Hwang (6T8X94ZY3T)"
ENTITLEMENTS_PLIST = ./entitlements.plist
build-mac:
plutil -convert xml1 ${ENTITLEMENTS_PLIST}
codesign --force --verbose --deep --sign ${APP_SIGN_IDENTITY} ./${TARGET_PATH_BASE}.app
codesign --force --verbose --deep --sign ${APP_SIGN_IDENTITY} --entitlements ${ENTITLEMENTS_PLIST} ./${TARGET_PATH_BASE}.app
productbuild --component ${TARGET_PATH_BASE}.app /Applications ${TARGET_PATH_BASE}.pkg --sign ${INSTALLER_SIGN_IDENTITY} --product ${ENTITLEMENTS_PLIST}