File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -789,19 +789,16 @@ jobs:
789
789
distDir="$3"
790
790
791
791
# Build binaries
792
- ./project/scripts/sbt "${sbtProject}/Universal/stage "
792
+ ./project/scripts/sbt "all ${sbtProject}/Universal/packageBin ${sbtProject}/Universal/packageZipTarball "
793
793
794
794
outputPath="${distDir}/target/universal/stage"
795
795
artifactName="scala3-${{ env.RELEASE_TAG }}${distroSuffix}"
796
796
zipArchive="${artifactName}.zip"
797
797
tarGzArchive="${artifactName}.tar.gz"
798
798
799
- cwd=$(pwd)
800
- (cd $outputPath && zip -r ${zipArchive} . && mv ${zipArchive} "${cwd}/")
801
- tar -czf ${tarGzArchive} -C "$outputPath" .
802
-
803
799
# Caluclate SHA for each of archive files
804
800
for file in "${zipArchive}" "${tarGzArchive}"; do
801
+ mv $outputPath/$file $file
805
802
sha256sum "${file}" > "${file}.sha256"
806
803
done
807
804
}
Original file line number Diff line number Diff line change @@ -2193,7 +2193,14 @@ object Build {
2193
2193
// ========
2194
2194
Universal / stage := (Universal / stage).dependsOn(republish).value,
2195
2195
Universal / packageBin := (Universal / packageBin).dependsOn(republish).value,
2196
- Universal / packageZipTarball := (Universal / packageZipTarball).dependsOn(republish).value,
2196
+ Universal / packageZipTarball := (Universal / packageZipTarball).dependsOn(republish)
2197
+ .map { archiveFile =>
2198
+ // Rename .tgz to .tar.gz for consistency with previous versions
2199
+ val renamedFile = archiveFile.getParentFile() / archiveFile.getName.replaceAll(" \\ .tgz$" , " .tar.gz" )
2200
+ IO .move(archiveFile, renamedFile)
2201
+ renamedFile
2202
+ }
2203
+ .value,
2197
2204
// ========
2198
2205
Universal / mappings ++= directory(dist.base / " bin" ),
2199
2206
Universal / mappings ++= directory(republishRepo.value / " maven2" ),
You can’t perform that action at this time.
0 commit comments