mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-28 03:44:07 +00:00
Merge pull request #39 from ngn999/beautiful_mac_installer
make macOS dmg file more beautiful
This commit is contained in:
commit
02d2393c62
9
.github/workflows/macos-6.2.yml
vendored
9
.github/workflows/macos-6.2.yml
vendored
|
@ -72,13 +72,18 @@ jobs:
|
||||||
cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd ..
|
cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd ..
|
||||||
#brew install qt # or use official offline installer
|
#brew install qt # or use official offline installer
|
||||||
brew install opencc libao hunspell ffmpeg@5 libtiff xz lzo libogg libvorbis zstd
|
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
|
qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support
|
||||||
make
|
make -j 8
|
||||||
# 打包
|
# 打包
|
||||||
- name: package
|
- name: package
|
||||||
run: |
|
run: |
|
||||||
macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg
|
macdeployqt ${targetName}.app -qmldir=. -verbose=1
|
||||||
otool -L GoldenDict.app/Contents/MacOS/GoldenDict
|
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
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
|
|
10
.github/workflows/macos.yml
vendored
10
.github/workflows/macos.yml
vendored
|
@ -72,13 +72,19 @@ jobs:
|
||||||
cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd ..
|
cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd ..
|
||||||
#brew install qt # or use official offline installer
|
#brew install qt # or use official offline installer
|
||||||
brew install opencc libao hunspell ffmpeg@5 libtiff xz lzo libogg libvorbis zstd
|
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
|
qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support
|
||||||
make
|
make -j 8
|
||||||
# 打包
|
# 打包
|
||||||
- name: package
|
- name: package
|
||||||
run: |
|
run: |
|
||||||
macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg
|
macdeployqt ${targetName}.app -qmldir=. -verbose=1
|
||||||
otool -L GoldenDict.app/Contents/MacOS/GoldenDict
|
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
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
|
|
Loading…
Reference in a new issue