From 68adf807973ee48445cc71b3d94d324b0efde28a Mon Sep 17 00:00:00 2001 From: ngn999 Date: Mon, 4 Apr 2022 12:36:03 +0800 Subject: [PATCH] make macOS dmg file more beautiful --- .github/workflows/macos-6.2.yml | 9 +++++++-- .github/workflows/macos.yml | 10 ++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos-6.2.yml b/.github/workflows/macos-6.2.yml index 0481f333..e461bce7 100644 --- a/.github/workflows/macos-6.2.yml +++ b/.github/workflows/macos-6.2.yml @@ -72,13 +72,18 @@ jobs: cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd .. #brew install qt # or use official offline installer brew install opencc libao hunspell ffmpeg@5 libtiff xz lzo libogg libvorbis zstd + brew install create-dmg qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support - make + make -j 8 # 打包 - name: package run: | - macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg + macdeployqt ${targetName}.app -qmldir=. -verbose=1 otool -L GoldenDict.app/Contents/MacOS/GoldenDict + mkdir tmp + mv ${targetName}.app ./tmp + # --background "installer_background.png" + create-dmg --volname "${targetName} Installer" --volicon "icons/macicon.icns" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "${targetName}.app" 200 190 --hide-extension "${targetName}.app" --app-drop-link 600 185 --skip-jenkins "${targetName}.dmg" tmp/ - name: Set outputs id: vars run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 78cadb65..6bdc438e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -72,13 +72,19 @@ jobs: cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd .. #brew install qt # or use official offline installer brew install opencc libao hunspell ffmpeg@5 libtiff xz lzo libogg libvorbis zstd + brew install create-dmg qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support - make + make -j 8 # 打包 - name: package run: | - macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg + macdeployqt ${targetName}.app -qmldir=. -verbose=1 otool -L GoldenDict.app/Contents/MacOS/GoldenDict + mkdir tmp + mv ${targetName}.app ./tmp + # --background "installer_background.png" + create-dmg --volname "${targetName} Installer" --volicon "icons/macicon.icns" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "${targetName}.app" 200 190 --hide-extension "${targetName}.app" --app-drop-link 600 185 --skip-jenkins "${targetName}.dmg" tmp/ + - name: Set outputs id: vars