Skip to content

Commit

Permalink
add* Makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
duraki committed Apr 19, 2023
1 parent 4adf187 commit 052d016
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
SHIORI_BUNDLE_IDENTIFIER ?= "com.durakiconsulting.shiori"

all:
@echo $(SHIORI_BUNDLE_IDENTIFIER)
: '$(SHIORI_BUNDLE_IDENTIFIER)'

build:
web-ext build -a dist

Expand All @@ -7,5 +13,20 @@ run-firefox:
run-chromium:
web-ext build run -t chromium

run-safari:
make all
xcrun safari-web-extension-converter . \
--project-location xcprj \
--app-name Shiori \
--bundle-identifier $(SHIORI_BUNDLE_IDENTIFIER) \
--macos-only --force --no-open \

@echo "All Done. [safari-web-ext @ shiori built] 🙌\n"
@echo "Execute manually to open XCode Project:"
@echo "\t$ open xcprj/Shiori/Shiori.xcodeproj"

lint:
web-ext lint

clean:
rm -rf xcprj/

0 comments on commit 052d016

Please sign in to comment.