mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: create beautiful dmg for macOS
(cherry picked from commit 92456b7880)
This commit is contained in:
parent
fd8f5f992a
commit
66bf11065d
2 changed files with 17 additions and 3 deletions
16
.github/scripts/create_snapshot.sh
vendored
16
.github/scripts/create_snapshot.sh
vendored
|
|
@ -31,9 +31,23 @@ build_doublecmd()
|
|||
pushd $BUILD_PACK_DIR
|
||||
mv doublecmd.app 'Double Commander.app'
|
||||
codesign --deep --force --verify --verbose --sign '-' 'Double Commander.app'
|
||||
hdiutil create -anyowners -volname "Double Commander" -imagekey zlib-level=9 -format UDZO -fs HFS+ -srcfolder "$BUILD_PACK_DIR" $PACK_DIR/doublecmd-$DC_VER-$DC_REVISION.$lcl.$CPU_TARGET.dmg
|
||||
popd
|
||||
|
||||
install/darwin/create-dmg/create-dmg \
|
||||
--volname "Double Commander" \
|
||||
--volicon "$BUILD_PACK_DIR/.VolumeIcon.icns" \
|
||||
--background "$BUILD_PACK_DIR/.background/bg.jpg" \
|
||||
--window-pos 200 200 \
|
||||
--window-size 680 366 \
|
||||
--text-size 16 \
|
||||
--icon-size 128 \
|
||||
--icon "Double Commander.app" 110 120 \
|
||||
--app-drop-link 360 120 \
|
||||
--icon "install.txt" 566 123 \
|
||||
--icon ".background" 100 500 \
|
||||
"$PACK_DIR/doublecmd-$DC_VER-$DC_REVISION.$lcl.$CPU_TARGET.dmg" \
|
||||
"$BUILD_PACK_DIR/"
|
||||
|
||||
# Clean DC build dir
|
||||
./clean.sh
|
||||
rm -rf $BUILD_PACK_DIR
|
||||
|
|
|
|||
|
|
@ -82,5 +82,5 @@ cp -r highlighters $DC_INSTALL_DIR/
|
|||
cp -a *.dylib $DC_INSTALL_DIR/
|
||||
|
||||
# Install instruction
|
||||
cp install/darwin/install.txt $1/
|
||||
ln -s /Applications $1/Applications
|
||||
cp -r -P install/darwin/dmg/. $1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue