Skip to content

Commit

Permalink
Distribute .pkg file for macOS
Browse files Browse the repository at this point in the history
macOS安装包格式改为.pkg
  • Loading branch information
jiangtian616 committed Mar 22, 2023
1 parent b22bc84 commit 2aea883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ flutter build macos --release -t lib/src/main.dart \
&& hdiutil create -size 150m -fs HFS+ -volname JHenTai JHenTai.dmg \
&& hdiutil attach JHenTai.dmg \
&& cp -R build/macos/Build/Products/Release/jhentai.app /Volumes/JHenTai \
&& pkgbuild --install-location /Applications/JHenTai.app --identifier top.jtmonster.jhentai --version ${version} --root /Volumes/JHenTai/jhentai.app build/macos/JHenTai.pkg \
&& pkgbuild --install-location /Applications/JHenTai.app --identifier top.jtmonster.jhentai --version ${version} --root /Volumes/JHenTai/jhentai.app build/macos/JHenTai-${version}.pkg \
&& hdiutil detach /Volumes/JHenTai

0 comments on commit 2aea883

Please sign in to comment.