4 changed files with 133 additions and 2 deletions
@ -0,0 +1,55 @@
@@ -0,0 +1,55 @@
|
||||
#!@BASH@ |
||||
|
||||
set -ex |
||||
|
||||
out_file="$1" |
||||
zrythm_formula_file=$2 |
||||
carla_bottle_file=$3 |
||||
installer_sh_file=$4 |
||||
readme_file=$5 |
||||
private_dir=$6 |
||||
installer_builder_dir="$7" |
||||
welcome_html="$8" |
||||
postinstall_script="$9" |
||||
|
||||
dash_trial="@DASH_TRIAL@" |
||||
manuals_zip="@MANUALS_ZIP_FILE@" |
||||
breeze_dark="@BREEZE_DARK@" |
||||
zrythm_pkg_ver="@ZRYTHM_PKG_VERSION@" |
||||
zrythm_bottle_name="zrythm$dash_trial" |
||||
carla_bottle_ver="@CARLA_BOTTLE_VER@" |
||||
|
||||
inner_dir_name="${out_file%.*}" |
||||
inner_dir_name="`basename $inner_dir_name`" |
||||
inner_dir=$private_dir/$inner_dir_name |
||||
|
||||
rm -rf $private_dir |
||||
mkdir -p $inner_dir |
||||
|
||||
# copy the template |
||||
cp -rfv $installer_builder_dir/* $inner_dir/ |
||||
|
||||
# copy the content of each formula (already installed) |
||||
cp -rfv /usr/local/Cellar/carla-git/$carla_bottle_ver/* \ |
||||
$inner_dir/macOS-x64/application/ |
||||
cp -rfv /usr/local/Cellar/$zrythm_bottle_name/$zrythm_pkg_ver/* \ |
||||
$inner_dir/macOS-x64/application/ |
||||
|
||||
# copy resources |
||||
cp $welcome_html $inner_dir/macOS-x64/darwin/Resources/ |
||||
cp $postinstall_script $inner_dir/macOS-x64/darwin/scripts/ |
||||
|
||||
#cp $readme_file $inner_dir/README |
||||
#cp -r "$breeze_dark" $inner_dir/icons/ |
||||
|
||||
#if [ "$dash_trial" != "-trial" ]; then |
||||
#echo "adding user manuals" ; |
||||
#unzip -o $manuals_zip -d $inner_dir/ ; |
||||
#fi |
||||
|
||||
# run command to build installer |
||||
pushd $inner_dir/macOS-x64 |
||||
./build-macos-x64.sh Zrythm $zrythm_pkg_ver |
||||
popd |
||||
|
||||
cp $inner_dir/macOS-x64/target/pkg/Zrythm-macos-installer-x64-$zrythm_pkg_ver.pkg $out_file |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash |
||||
|
||||
echo "Post installation process finished" |
||||
|
||||
#Custermize this for your application |
||||
#APPLICATION_FILE_PATH=bin/zrythm |
||||
|
||||
#Parameters |
||||
#PRODUCT_HOME=/Library/__PRODUCT__/__VERSION__ |
||||
|
||||
#echo "Post installation process started" |
||||
|
||||
#Change permissions in home directory |
||||
#echo "Change permissions in product home" |
||||
#cd ${PRODUCT_HOME} |
||||
#chmod -R 755 . |
||||
#[ -d /usr/local/bin ] || mkdir /usr/local/bin |
||||
|
||||
#Add application shortcut to /usr/local/bin |
||||
#rm -f /usr/local/bin/__PRODUCT__-__VERSION__ |
||||
#ln -s ${PRODUCT_HOME}/${APPLICATION_FILE_PATH} /usr/local/bin/__PRODUCT__-__VERSION__ |
||||
#echo "Post installation process finished" |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="utf-8" /> |
||||
</head> |
||||
<body> |
||||
<div align="left" style="font-family: Helvetica; padding-left: 10px;"> |
||||
<br/> |
||||
<p style="color: #020202; font-size: 12px;">This will install <span style="color: #46b9d6; font-size: 12px;">Zrythm@DASH_TRIAL@ @ZRYTHM_PKG_VERSION@</span> on your computer. You will be guided through the steps necessary to install this software.</p> |
||||
<br/> |
||||
<p style="color: #abb0b0; font-size: 12px;">Click <span style="color: #626666">“Continue"</span> to continue the setup</p> |
||||
</div> |
||||
</body> |
||||
</html> |
Loading…
Reference in new issue