Skip to content

Commit 89b6289

Browse files
committed
CI: disable sha256 txt generation because github release page does it
already
1 parent b809a76 commit 89b6289

3 files changed

Lines changed: 36 additions & 28 deletions

File tree

script/build_linux

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ pyi-archive_viewer --list "$SOURCE"
2222
mkdir -p dist/releases
2323
cp "$SOURCE" "$TARGET"
2424

25-
# sha256
26-
TARGET_BASENAME=$(basename "$TARGET")
27-
# to produce "HASH mapillary_toos" instead of "HASH dist/releases/mapillary_tools"
28-
cd dist/releases
29-
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
30-
cd ../../
25+
# sha256 (disabled because github release page shows checksums)
26+
if [ "" ]; then
27+
TARGET_BASENAME=$(basename "$TARGET")
28+
# to produce "HASH mapillary_toos" instead of "HASH dist/releases/mapillary_tools"
29+
cd dist/releases
30+
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
31+
cd ../../
32+
fi
3133

3234
# check
3335
FOLDER=dist/${OS}/mapillary_tools_folder
@@ -43,12 +45,14 @@ cd dist/${OS}/
4345
zip -r ../../"$TARGET" mapillary_tools_folder
4446
cd ../../
4547

46-
# sha256
47-
TARGET_BASENAME=$(basename "$TARGET")
48-
# to produce "HASH mapillary_tools" instead of "HASH dist/releases/mapillary_tools"
49-
cd dist/releases
50-
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
51-
cd ../../
48+
# sha256 (disabled because github release page shows checksums)
49+
if [ "" ]; then
50+
TARGET_BASENAME=$(basename "$TARGET")
51+
# to produce "HASH mapillary_tools" instead of "HASH dist/releases/mapillary_tools"
52+
cd dist/releases
53+
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
54+
cd ../../
55+
fi
5256

5357
# summary
5458
ls -l dist/releases

script/build_osx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ pyi-archive_viewer --list "$SOURCE"
2222
mkdir -p dist/releases
2323
zip -j "$TARGET" "$SOURCE" README_osx_package.txt
2424

25-
# sha256
26-
TARGET_BASENAME=$(basename "$TARGET")
27-
# to produce "HASH mapillary_toos" instead of "HASH dist/releases/mapillary_tools"
28-
cd dist/releases
29-
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
30-
cd ../../
25+
# sha256 (disabled because github release page shows checksums)
26+
if [ "" ]; then
27+
TARGET_BASENAME=$(basename "$TARGET")
28+
# to produce "HASH mapillary_toos" instead of "HASH dist/releases/mapillary_tools"
29+
cd dist/releases
30+
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
31+
cd ../../
32+
fi
3133

3234
# check
3335
FOLDER=dist/${OS}/mapillary_tools_folder
@@ -43,12 +45,14 @@ cd dist/${OS}/
4345
zip -y -r ../../"$TARGET" mapillary_tools_folder
4446
cd ../../
4547

46-
# sha256
47-
TARGET_BASENAME=$(basename "$TARGET")
48-
# to produce "HASH mapillary_tools" instead of "HASH dist/releases/mapillary_tools"
49-
cd dist/releases
50-
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
51-
cd ../../
48+
# sha256 (disabled because github release page shows checksums)
49+
if [ "" ]; then
50+
TARGET_BASENAME=$(basename "$TARGET")
51+
# to produce "HASH mapillary_tools" instead of "HASH dist/releases/mapillary_tools"
52+
cd dist/releases
53+
shasum -a256 "$TARGET_BASENAME" | tee "${TARGET_BASENAME}.sha256.txt"
54+
cd ../../
55+
fi
5256

5357
# summary
5458
ls -l dist/releases

script/build_win.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pyi-archive_viewer --list "$SOURCE"
2727
mkdir -Force dist\releases
2828
Copy-Item "$SOURCE" "$TARGET"
2929

30-
# sha256
31-
Get-FileHash $TARGET -Algorithm SHA256 | Select-Object Hash > "$TARGET.sha256.txt"
30+
# sha256 (disabled because github release page shows checksums)
31+
# Get-FileHash $TARGET -Algorithm SHA256 | Select-Object Hash > "$TARGET.sha256.txt"
3232

3333
# check
3434
$FOLDER="dist\win\mapillary_tools_folder"
@@ -44,8 +44,8 @@ cd dist\win
4444
Compress-Archive -Path mapillary_tools_folder -DestinationPath ..\..\"$TARGET"
4545
cd ..\..\
4646

47-
# sha256
48-
Get-FileHash $TARGET -Algorithm SHA256 | Select-Object Hash > "$TARGET.sha256.txt"
47+
# sha256 (disabled because github release page shows checksums)
48+
# Get-FileHash $TARGET -Algorithm SHA256 | Select-Object Hash > "$TARGET.sha256.txt"
4949

5050
# summary
5151
Get-ChildItem dist\releases

0 commit comments

Comments
 (0)