File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ pyi-archive_viewer --list "$SOURCE"
2222mkdir -p dist/releases
2323cp " $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
3335FOLDER=dist/${OS} /mapillary_tools_folder
@@ -43,12 +45,14 @@ cd dist/${OS}/
4345zip -r ../../" $TARGET " mapillary_tools_folder
4446cd ../../
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
5458ls -l dist/releases
Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ pyi-archive_viewer --list "$SOURCE"
2222mkdir -p dist/releases
2323zip -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
3335FOLDER=dist/${OS} /mapillary_tools_folder
@@ -43,12 +45,14 @@ cd dist/${OS}/
4345zip -y -r ../../" $TARGET " mapillary_tools_folder
4446cd ../../
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
5458ls -l dist/releases
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ pyi-archive_viewer --list "$SOURCE"
2727mkdir - Force dist\releases
2828Copy-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
4444Compress-Archive - Path mapillary_tools_folder - DestinationPath ..\..\" $TARGET "
4545cd ..\..\
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
5151Get-ChildItem dist\releases
You can’t perform that action at this time.
0 commit comments