| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #!/bin/bash
- # Set Double Commander version
- DC_VER=1.1.0
- # The new package will be saved here
- PACK_DIR=$PWD/doublecmd-release
- # Temp dir for creating *.dmg package
- BUILD_PACK_DIR=/var/tmp/doublecmd-$(date +%y.%m.%d)
- # Save revision number
- DC_REVISION=$(install/linux/update-revision.sh ./ ./)
- # Set widgetset
- export lcl=cocoa
- # Update application bundle version
- defaults write $(pwd)/doublecmd.app/Contents/Info CFBundleVersion $DC_REVISION
- defaults write $(pwd)/doublecmd.app/Contents/Info CFBundleShortVersionString $DC_VER
- plutil -convert xml1 $(pwd)/doublecmd.app/Contents/Info.plist
- chmod 644 $(pwd)/doublecmd.app/Contents/Info.plist
- build_doublecmd()
- {
- # Build all components of Double Commander
- ./build.sh release
- # Create *.dmg package
- mkdir -p $BUILD_PACK_DIR
- install/darwin/install.sh $BUILD_PACK_DIR
- pushd $BUILD_PACK_DIR
- mv doublecmd.app 'Double Commander.app'
- codesign --deep --force --verify --verbose --sign '-' 'Double Commander.app'
- 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
- }
- mkdir -p $PACK_DIR
- echo $DC_REVISION > $PACK_DIR/revision.php
- # Set processor architecture
- export CPU_TARGET=aarch64
- # Set minimal Mac OS X target version
- export MACOSX_DEPLOYMENT_TARGET=11.0
- build_doublecmd
- # Set processor architecture
- export CPU_TARGET=x86_64
- # Set minimal Mac OS X target version
- export MACOSX_DEPLOYMENT_TARGET=10.11
- build_doublecmd
|