Skip to content

Commit

Permalink
macos make: test run app bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Jan 31, 2022
1 parent f30b769 commit c8b4328
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ else ifdef IS_WIN64
else ifdef IS_OSX
EXE = $(NIX_EXE)
ifeq ($(CONF), DIST) # TODO dmg?
native: $(OSX_APP) $(OSX_ZIP)
native: $(OSX_APP) $(OSX_ZIP) test_osx_app
else
native: $(NIX_EXE)
endif
Expand All @@ -189,7 +189,7 @@ else
endif
endif

.PHONY: all native cross wasm clean
.PHONY: all native cross wasm clean test_osx_app
all: native cross wasm
wasm: $(HTML)

Expand Down Expand Up @@ -243,7 +243,11 @@ $(WIN32_ZIP) $(WIN64_ZIP):

$(OSX_APP): $(NIX_EXE)
./macosx/bundle_macosx_app.sh --version=$(VERSION) --deployment-target=$(DEPLOYMENT_TARGET) "$(NIX_EXE)"


test_osx_app: $(OSX_APP)
# test that the app bundle is correctly build
open -n ./$(OSX_APP) --args --version

$(OSX_ZIP): $(OSX_APP) | $(DIST_DIR)
rm -f $@
(cd $(dir $<) && \
Expand Down

0 comments on commit c8b4328

Please sign in to comment.