Centralize mv logic
This commit is contained in:
parent
218e12714d
commit
d8bd25b438
|
@ -14,10 +14,6 @@ pipeline:
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- ./platform_jars.sh
|
- ./platform_jars.sh
|
||||||
- mv launcher-dist/build/jpackage/*.deb public/inceptum.deb
|
|
||||||
- mv launcher-dist/build/jpackage/*.msi public/inceptum.msi
|
|
||||||
- for f in launcher-dist/build/libs/Inceptum-*-*-*.jar; do mv "$f" "public/Inceptum-$${f##*-}"; done
|
|
||||||
- mv public/Inceptum-fat.jar public/Inceptum.jar
|
|
||||||
build_wrapper:
|
build_wrapper:
|
||||||
image: gradle:jdk19-jammy
|
image: gradle:jdk19-jammy
|
||||||
commands:
|
commands:
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
function moveartifacts {
|
||||||
|
mv launcher-dist/build/jpackage/*.deb public/inceptum.deb
|
||||||
|
mv launcher-dist/build/jpackage/*.msi public/inceptum.msi
|
||||||
|
for f in launcher-dist/build/libs/Inceptum-*-*-*.jar; do mv "$f" "public/Inceptum-${f##*-}"; done
|
||||||
|
}
|
||||||
|
|
||||||
gradle --build-cache :launcher-dist:build -Pflavor=fat -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
gradle --build-cache :launcher-dist:build -Pflavor=fat -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||||||
|
moveartifacts
|
||||||
|
mv public/Inceptum-fat.jar public/Inceptum.jar
|
||||||
gradle --build-cache :launcher-dist:build :launcher-dist:jpackage -Pflavor=windows -Ppublic -Pcrosscompile -Ptimestamp=${CI_PIPELINE_STARTED}
|
gradle --build-cache :launcher-dist:build :launcher-dist:jpackage -Pflavor=windows -Ppublic -Pcrosscompile -Ptimestamp=${CI_PIPELINE_STARTED}
|
||||||
|
moveartifacts
|
||||||
gradle --build-cache :launcher-dist:build :launcher-dist:jpackage -Pflavor=linux -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
gradle --build-cache :launcher-dist:build :launcher-dist:jpackage -Pflavor=linux -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||||||
gradle --build-cache :launcher-dist:build -Pflavor=macos -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
moveartifacts
|
||||||
|
gradle --build-cache :launcher-dist:build -Pflavor=macos -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||||||
|
moveartifacts
|
Loading…
Reference in New Issue