Skip to content
Snippets Groups Projects
Commit 939bf98d authored by boklm's avatar boklm Committed by morgan
Browse files

Bug 41231: Use release date as timestamp while generating signed dmg

parent 2ccb1d0b
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
# file from a directory
#
# Usage:
# ddmg.sh <dmg-file> <src-directory> <Volume Label>
# ddmg.sh <dmg-file> <src-directory> <Volume Label> <release date>
set -e
......@@ -14,6 +14,7 @@ source "$script_dir/functions"
dest_file="$1"
src_dir="$2"
volume_label="$3"
browser_release_date="$4"
set +e
find $src_dir -executable -exec chmod 0755 {} \; 2> /dev/null
......@@ -26,7 +27,7 @@ dmg_tmpdir=$(mktemp -d)
hfsfile="$dmg_tmpdir/tbb-uncompressed.dmg"
export LD_PRELOAD=$faketime_path
export FAKETIME="2000-01-01 01:01:01"
export FAKETIME="$browser_release_date"
echo "Starting: " $(basename $dest_file)
......
......@@ -56,6 +56,9 @@ ProjName=$(ProjectName)
Proj_Name=$(Project_Name)
proj_name=$(project-name)
disp_name=$(display_name)
pushd "$script_dir/../.."
browser_release_date=$($rbm showconf --target "$tbb_version_type" --target "$SIGNING_PROJECTNAME-linux-x86_64" browser var/faketime_date)
popd
test -d "$macos_signed_dir" || mkdir "$macos_signed_dir"
tmpdir="$macos_stapled_dir/tmp"
......@@ -75,7 +78,7 @@ rm *.DS_Store
tar -xf $macos_stapled_dir/"${proj_name}-${tbb_version}-notarized+stapled.tar.zst"
cd ..
$script_dir/ddmg.sh $macos_signed_dir/${proj_name}-macos-${tbb_version}.dmg $tmpdir/dmg/ "$disp_name"
$script_dir/ddmg.sh $macos_signed_dir/${proj_name}-macos-${tbb_version}.dmg $tmpdir/dmg/ "$disp_name" "$browser_release_date"
rm -rf "dmg/$disp_name.app"
rm -Rf "$tmpdir"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment