diff --git a/reproducible-builds/Dockerfile b/reproducible-builds/Dockerfile index 74fa45330..a2c6c1ebd 100644 --- a/reproducible-builds/Dockerfile +++ b/reproducible-builds/Dockerfile @@ -5,7 +5,7 @@ FROM ubuntu:jammy-20230624@sha256:b060fffe8e1561c9c3e6dea6db487b900100fc26830b9e # UNIX timestamp will be generated at the time of the build, and is non-deterministic. # # Read https://reproducible-builds.org/specs/source-date-epoch/ for more info -ENV SOURCE_DATE_EPOCH=0 +ENV SOURCE_DATE_EPOCH=1 # Due to some issues with NVM reading .nvmrc, we define the version # as an environment variable and use that instead. diff --git a/reproducible-builds/build.sh b/reproducible-builds/build.sh index 52527a7a6..cff8760b9 100755 --- a/reproducible-builds/build.sh +++ b/reproducible-builds/build.sh @@ -3,18 +3,18 @@ # SPDX-License-Identifier: AGPL-3.0-only # Usage: -# ./build.sh [ dev (default) | public (prod and beta builds) | alpha | test | staging ] [ Build timestamp override. Defaults to latest git commit or 0. ] +# ./build.sh [ dev (default) | public (prod and beta builds) | alpha | test | staging ] [ Build timestamp override. Defaults to latest git commit or 1. ] # First we prepare the docker container in which our build scripts will run. This container includes # all build dependencies at specific versions. # We set SOURCE_DATE_EPOCH to make system build timestamps deterministic. -docker build -t signal-desktop --build-arg SOURCE_DATE_EPOCH=0 --build-arg NODE_VERSION=$(cat ../.nvmrc) . +docker build -t signal-desktop --build-arg SOURCE_DATE_EPOCH=1 --build-arg NODE_VERSION=$(cat ../.nvmrc) . # Before performing the actual build, go to the project root. cd .. # Prepare the timestamp of the actual build based on the latest git commit. -source_date_epoch=0 +source_date_epoch=1 if [ "$2" != "" ]; then echo "Using override timestamp for SOURCE_DATE_EPOCH." source_date_epoch=$(($2)) @@ -25,8 +25,8 @@ else echo "Setting SOURCE_DATE_EPOCH to latest commit's timestamp." source_date_epoch=$((git_timestamp)) else - echo "Can't get latest commit timestamp. Defaulting to 0." - source_date_epoch=0 + echo "Can't get latest commit timestamp. Defaulting to 1." + source_date_epoch=1 fi fi