-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
13,262 additions
and
10,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
APP := "Cantor" | ||
CREATE_DMG ?= $(shell which create-dmg) | ||
|
||
define check | ||
command -v $(1) 1>/dev/null || $(2) | ||
endef | ||
|
||
help: | ||
@echo "Usage:" | ||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | ||
|
||
## run: 启动调试模式 | ||
run: | ||
wails serve | ||
|
||
## cli: 编译可执行文件 | ||
cli: | ||
wails build -d | ||
dev: | ||
wails dev | ||
|
||
## app: 编译 app 文件 | ||
app: clean | ||
wails build -p | ||
## build: 编译 app 文件 | ||
build: clean | ||
wails build | ||
|
||
## clean: 清除编译的程序 | ||
clean: | ||
rm -rf ./build/* | ||
rm -rf ./build/bin/* | ||
rm -rf ./Cantor.dmg | ||
|
||
## dmg: 生成 dmg 文件 | ||
dmg: build | ||
@@$(call check,create-dmg,brew install create-dmg) | ||
$(CREATE_DMG) \ | ||
--volname "Cantor" \ | ||
--background "assets/background.png" \ | ||
--window-size 558 367 \ | ||
--icon-size 100 \ | ||
--icon "Cantor.app" 200 190 \ | ||
--hide-extension "Cantor.app" \ | ||
--app-drop-link 370 190 \ | ||
"Cantor.dmg" \ | ||
"build/bin/" | ||
|
||
.PHONY: clean run cli app help | ||
.PHONY: help clean dev build dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.