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 { ...@@ -55,7 +55,7 @@ function fail {
cd ${app_bundle_name}/Contents/Resources/extra cd ${app_bundle_name}/Contents/Resources/extra
for url in ${ext_urls[@]} for url in ${ext_urls[@]}
do do
curl -s -o file "${url}" || fail curl -s --fail -o file "${url}" || fail
if file file | grep ' Zip archive data' > /dev/null if file file | grep ' Zip archive data' > /dev/null
then then
unzip -q file || fail unzip -q file || fail
...@@ -85,13 +85,13 @@ function 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 sed -f <(echo "${info_plist_replacements}") files/Info.plist > ${work_dir}/${app_bundle_name}/Contents/Info.plist || fail
# copy README # copy README
cp files/README.txt "${work_dir}" || fail cp files/README.txt "${work_dir}" || fail
exit
# create disk image # 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 # put file online
scp "${app_name}-${app_version}.dmg" netpd.org:public_html/. || fail scp -q "${app_name}-${app_version}_macos_${package_version}.dmg" "all@netpd.org:public_html/software/" || fail
# clean up # 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