diff --git a/taskcluster/scripts/build/windows_clang_cl.ps1 b/taskcluster/scripts/build/windows_clang_cl.ps1 index ab9fa3ffa0..c21571e3df 100644 --- a/taskcluster/scripts/build/windows_clang_cl.ps1 +++ b/taskcluster/scripts/build/windows_clang_cl.ps1 @@ -31,7 +31,7 @@ $env:OPENSSL_USE_STATIC_LIBS = "TRUE" # Extract the sources $SOURCE_DSC = resolve-path "$FETCHES_PATH/mozillavpn_*.dsc" $SOURCE_VERSION = ((select-string $SOURCE_DSC -Pattern '^Version:') -split " ")[1] -tar -xzvf (resolve-path "$FETCHES_PATH/mozillavpn_$SOURCE_VERSION.orig.tar.gz" -Relative) +tar -xzvf --dereference (resolve-path "$FETCHES_PATH/mozillavpn_$SOURCE_VERSION.orig.tar.gz" -Relative) $SOURCE_DIR = resolve-path "$TASK_WORKDIR/mozillavpn-$SOURCE_VERSION" @@ -60,36 +60,19 @@ $env:PATH="$CONDA_PREFIX\bin;$env:Path" mkdir $TASK_WORKDIR/cmake_build $BUILD_DIR =resolve-path "$TASK_WORKDIR/cmake_build" -if ($env:MOZ_SCM_LEVEL -eq "3") { - # Only on a release build we have access to those secrects. - python3 $SOURCE_DIR/taskcluster/scripts/get-secret.py -s project/mozillavpn/tokens -k sentry_dsn -f sentry_dsn - python3 $SOURCE_DIR/taskcluster/scripts/get-secret.py -s project/mozillavpn/tokens -k sentry_envelope_endpoint -f sentry_envelope_endpoint - python3 $SOURCE_DIR/taskcluster/scripts/get-secret.py -s project/mozillavpn/tokens -k sentry_debug_file_upload_key -f sentry_debug_file_upload_key - $SENTRY_ENVELOPE_ENDPOINT = Get-Content sentry_envelope_endpoint - $SENTRY_DSN = Get-Content sentry_dsn - # - cmake -S $SOURCE_DIR -B $BUILD_DIR ` - -GNinja -DCMAKE_BUILD_TYPE=Release ` - -DSENTRY_DSN="$SENTRY_DSN" -DSENTRY_ENVELOPE_ENDPOINT="$SENTRY_ENVELOPE_ENDPOINT" ` - -DPYTHON_EXECUTABLE="$CONDA_PREFIX\python.exe" ` - -DGOLANG_BUILD_TOOL="$CONDA_PREFIX\bin\go.exe" ` - -DCMAKE_PREFIX_PATH="$QTPATH/lib/cmake" -} else { - # Do the generic build - cmake -S $SOURCE_DIR -B $BUILD_DIR -GNinja ` +# Do the generic build +cmake -S $SOURCE_DIR -B $BUILD_DIR -GNinja ` -DCMAKE_BUILD_TYPE=Release ` -DPYTHON_EXECUTABLE="$CONDA_PREFIX\python.exe" ` -DGOLANG_BUILD_TOOL="$CONDA_PREFIX\bin\go.exe" ` -DWINTUN_FOLDER="$FETCHES_PATH\wintun" ` -DCMAKE_PREFIX_PATH="$QTPATH/lib/cmake" -} + cmake --build $BUILD_DIR ## Building the MSI Installer. - cmake --build $BUILD_DIR --target msi - cmake --install $BUILD_DIR --prefix "$TASK_WORKDIR/unsigned" Write-Output "Writing Artifacts" @@ -102,6 +85,7 @@ Write-Output "Artifacts Location:$TASK_WORKDIR/artifacts" Get-ChildItem -Path $TASK_WORKDIR/artifacts if ($env:MOZ_SCM_LEVEL -eq "3") { + python3 $SOURCE_DIR/taskcluster/scripts/get-secret.py -s project/mozillavpn/tokens -k sentry_debug_file_upload_key -f sentry_debug_file_upload_key sentry-cli-Windows-x86_64.exe login --auth-token $(Get-Content sentry_debug_file_upload_key) # This will ask sentry to scan all files in there and upload # missing debug info, for symbolification