"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "build-for-macos.sh" between
yudit-3.0.1.tar.gz and yudit-3.0.2.tar.gz

About: yudit is an Unicode plain-text editor that can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engines.

build-for-macos.sh  (yudit-3.0.1):build-for-macos.sh  (yudit-3.0.2)
#!/bin/bash #!/bin/bash
# When you run this program, it will create an installer for mac. # When you run this program, it will create an installer for mac.
# #
# Make sure you also have XCode installed before running this script, # Make sure you also have XCode installed before running this script,
# otherwise yudit may not compile. # otherwise yudit may not compile.
# #
# Gaspar Sinai <gaspar@yudit.org> Tokyo 2020-05-10 # Gaspar Sinai <gaspar@yudit.org> Tokyo 2020-05-10
# #
APPNAME=Yudit APPNAME=Yudit
APPVERSION="3.0.1" APPVERSION="3.0.2"
BUILD_NAME="unsigned" BUILD_NAME="unsigned"
if [ -f addon/yudit_sedy/yudit_sedy.h ] if [ -f addon/yudit_sedy/yudit_sedy.h ]
then then
BUILD_NAME="sedy" BUILD_NAME="sedy"
fi fi
check_error () { check_error () {
echo "error: $2" >&2 echo "error: $2" >&2
exit 1 exit 1
skipping to change at line 46 skipping to change at line 46
ln -s /Applications/ $DESTDIR/Applications/Applications || check_error $? "Faile d to create symlink" ln -s /Applications/ $DESTDIR/Applications/Applications || check_error $? "Faile d to create symlink"
cp -R ./macos/Yudit.app $DESTDIR/Applications/ || check_error $? "Failed to copy to $DESTDIR/Applicaions/Yudit.app" cp -R ./macos/Yudit.app $DESTDIR/Applications/ || check_error $? "Failed to copy to $DESTDIR/Applicaions/Yudit.app"
./configure --prefix=${PREFIX} || check_error $? "configure failed." ./configure --prefix=${PREFIX} || check_error $? "configure failed."
make -j 16 || check_error $? "make failed." make -j 16 || check_error $? "make failed."
# uses DESTDIR # uses DESTDIR
make install || check_error $? "make install failed." make install || check_error $? "make install failed."
# play safe if DESTDIR is / just move # play safe if DESTDIR is / just move
cp $MACOSDIR/bin/yudit $MACOSDIR/Yudit cp $MACOSDIR/bin/yudit $MACOSDIR/Yudit
if [ $BUILD_NAME = "sedy" ]
then # From version 3.0.2 Yudit installer installs these too.
cp addon/truetype/target/*.* $MACOSDIR/share/yudit/fonts || check_error $? " #if [ $BUILD_NAME = "sedy" ]
Can not copy fonts." #then
# overwrite with our file. # cp addon/truetype/target/*.* $MACOSDIR/share/yudit/fonts || check_error $?
cp fonts/*.ttf $MACOSDIR/share/yudit/fonts "Can not copy fonts."
cp addon/syntax/target/*.* $MACOSDIR/share/yudit/syntax || check_error $? "C ## overwrite with our file.
an not copy syntax files." # cp fonts/*.ttf $MACOSDIR/share/yudit/fonts
fi # cp addon/syntax/target/*.* $MACOSDIR/share/yudit/syntax || check_error $? "
Can not copy syntax files."
#fi
cp -R ./macos/dot_background $DESTDIR/Applications/.background || check_error $? "Failed to copy installer background" cp -R ./macos/dot_background $DESTDIR/Applications/.background || check_error $? "Failed to copy installer background"
# Resources and icons are in the bundle macos/Yudit.app bundle # Resources and icons are in the bundle macos/Yudit.app bundle
#cp COPYING.TXT $DESTDIR || check_error $? "can not copy COPYING.TXT" #cp COPYING.TXT $DESTDIR || check_error $? "can not copy COPYING.TXT"
echo "creating package" echo "creating package"
hdiutil create -volname Yudit -srcfolder $DESTDIR/Applications/ -ov -format UDZO ./target/yudit-${APPVERSION}.x86_64-${BUILD_NAME}.dmg ||check_error $? "Failed to create disk image." hdiutil create -volname Yudit -srcfolder $DESTDIR/Applications/ -ov -format UDZO ./target/yudit-${APPVERSION}.x86_64-${BUILD_NAME}.dmg ||check_error $? "Failed to create disk image."
# codesign --force --sign "Developer ID Application: <identityIdentifier>" ./tar get/yudit-${APPVERSION}-${BUILD_NAME}.x86_64.dmg # codesign --force --sign "Developer ID Application: <identityIdentifier>" ./tar get/yudit-${APPVERSION}-${BUILD_NAME}.x86_64.dmg
 End of changes. 2 change blocks. 
10 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)