Fix macOS packaging: create .app bundle manually
wails3 build v3 alpha delegates to Taskfile; the go build produces a raw binary, not a .app. Package step now creates the bundle structure (Contents/MacOS, Info.plist) and zips it.
This commit is contained in:
6
Makefile
6
Makefile
@@ -61,6 +61,12 @@ desktop: ui ## Build the Wails desktop app for the current platform
|
||||
desktop-package: desktop ## Build + package the desktop app (zip on macOS, tar.gz on Linux)
|
||||
@case $$(uname -s) in \
|
||||
Darwin) \
|
||||
APP="cmd/desktop/build/bin/oikos-desktop.app"; \
|
||||
rm -rf "$$APP"; \
|
||||
mkdir -p "$$APP/Contents/MacOS"; \
|
||||
mkdir -p "$$APP/Contents/Resources"; \
|
||||
cp cmd/desktop/build/bin/oikos-desktop "$$APP/Contents/MacOS/oikos-desktop"; \
|
||||
sed 's/$$(VERSION)/0.1.0/' cmd/desktop/Info.plist.template > "$$APP/Contents/Info.plist"; \
|
||||
cd cmd/desktop/build/bin && zip -r oikos-desktop-darwin-$$(uname -m).zip oikos-desktop.app ;; \
|
||||
Linux) \
|
||||
cd cmd/desktop/build/bin && tar czf oikos-desktop-linux-$$(uname -m).tar.gz oikos-desktop ;; \
|
||||
|
||||
Reference in New Issue
Block a user