Skip to content

Commit

Permalink
updated setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
t-weber committed Jan 17, 2019
1 parent 7c73a17 commit 7241a00
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
53 changes: 53 additions & 0 deletions cp_dmg.sh
@@ -0,0 +1,53 @@
#!/bin/bash
#
# @date jan-19
# @author Tobias Weber <tobias.weber@tum.de>
# @license GPLv2
#
# copy application into disk image
#

echo -e "Removing any old file ..."
rm -f takin.dmg

echo -e "\nCreating a writable image ..."
if ! hdiutil create takin.dmg -srcfolder takin.app -fs UDF -format "UDRW" -volname "takin"; then
echo -e "Cannot create image file."
exit -1
fi

echo -e "\n--------------------------------------------------------------------------------"

echo -e "Mounting the image ..."
if ! hdiutil attach takin.dmg -readwrite; then
echo -e "Cannot mount image file."
exit -1
fi

echo -e "\n--------------------------------------------------------------------------------"

echo -e "Creating additional files/links in the image ..."
ln -sf /Applications /Volumes/takin/Install_by_dragging_Takin_here

echo -e "\n--------------------------------------------------------------------------------"

echo -e "Unmounting the image ..."
if ! hdiutil detach /Volumes/takin; then
echo -e "Cannot detach image file."
exit -1
fi

echo -e "\n--------------------------------------------------------------------------------"

echo -e "Converting the image to read-only and compressing ..."
if ! hdiutil convert takin.dmg -o takin_final.dmg -format "UDBZ"; then
echo -e "Cannot convert image file to UDBZ."
exit -1
fi

echo -e "\n--------------------------------------------------------------------------------"

echo -e "Copying file ..."
mv -v takin_final.dmg takin.dmg

echo -e "\nSuccessfully created takin.dmg."
2 changes: 1 addition & 1 deletion cp_frameworks.sh
Expand Up @@ -6,7 +6,7 @@
#
# copy framework libs
#
# pack with: hdiutil create takin.dmg -srcfolder takin.app -fs UDF -format "UDBZ" -volname "takin"
# pack with: hdiutil create takin.dmg -verbose -srcfolder takin.app -fs UDF -format "UDBZ" -volname "takin"
#


Expand Down
2 changes: 1 addition & 1 deletion fix_names.sh
Expand Up @@ -12,7 +12,7 @@ OS_BIN="$BIN_DIR" # set accordingly

TOOL=install_name_tool
STRIP=strip
QT_VER="5.11.2"
QT_VER="5.12.0"


# files whose linkage is to be changed
Expand Down

0 comments on commit 7241a00

Please sign in to comment.