Commit 794c2deb authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add date to bundle filename; add --fail to curl

parent 9ee97c8a
......@@ -55,7 +55,7 @@ function fail {
cd ${app_bundle_name}/Contents/Resources/extra
for url in ${ext_urls[@]}
curl -s -o file "${url}" || fail
curl -s --fail -o file "${url}" || fail
if file file | grep ' Zip archive data' > /dev/null
unzip -q file || fail
......@@ -85,13 +85,13 @@ function fail {
sed -f <(echo "${info_plist_replacements}") files/Info.plist > ${work_dir}/${app_bundle_name}/Contents/Info.plist || fail
# copy README
cp files/README.txt "${work_dir}" || fail
# create disk image
genisoimage -quiet -V "${app_name}-${app_version}" -D -R -apple -no-pad -o "${app_name}-${app_version}.dmg" "${work_dir}" || fail
genisoimage -quiet -V "${app_name}-${app_version}" -D -R -apple -no-pad -o "${app_name}-${app_version}_macos_${package_version}.dmg" "${work_dir}" || fail
# put file online
scp "${app_name}-${app_version}.dmg" || fail
scp -q "${app_name}-${app_version}_macos_${package_version}.dmg" "" || fail
# clean up
rm -r "${work_dir}" "${app_name}-${app_version}.dmg"
rm -r "${work_dir}" "${app_name}-${app_version}_macos_${package_version}.dmg"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment