Commit 95d88bbe authored by Razvan Radulescu's avatar Razvan Radulescu

Fix CI job script

- wasn't building the tar.xz file correctly
- the order of some copying was wrong

Everything should build locally following the script provided that godot
is installed and set up.
parent 7b25b335
Pipeline #5112 passed with stage
in 13 minutes and 9 seconds
......@@ -2,7 +2,7 @@ variables:
DEB_VERSION: "0.1"
DEB_NAME: "flossy-gnu"
BUILD_NAME: "game"
GODOT_VERSION: "3.1"
GODOT_VERSION: "3.0.6"
GODOT_VARIANT: "stable"
purism:
......@@ -23,13 +23,16 @@ purism:
- rm -rf ./downloads
script:
- godot -v -q --path ./$BUILD_NAME --export "Linux/X11" ../build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64
- ls -la ./build
- mv -v ./debian/*.desktop ./build/$DEB_NAME-$DEB_VERSION
- cp -v ./$BUILD_NAME/icon.png ./build/$DEB_NAME-$DEB_VERSION
- ls -la ./build/$DEB_NAME-$DEB_VERSION
- strip --strip-unneeded --remove-section=.comment --remove-section=.note ./build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64
- tar -cJf ./build/${DEB_NAME}_${DEB_VERSION}.orig.tar.xz ./build/$DEB_NAME-$DEB_VERSION/*
- cp -v -r ./debian ./build/$DEB_NAME-$DEB_VERSION
- mv -v ./build/$DEB_NAME-$DEB_VERSION/debian/*.desktop ./build/$DEB_NAME-$DEB_VERSION
- cd ./build/$DEB_NAME-$DEB_VERSION
- cd ./build
- tar -vcJf ${DEB_NAME}_${DEB_VERSION}.orig.tar.xz $DEB_NAME-$DEB_VERSION
- cd ./$DEB_NAME-$DEB_VERSION
- cp -v -r ../../debian .
- fakeroot dpkg-buildpackage -F
- ls -la ..
artifacts:
name: $DEB_NAME-$DEB_VERSION-$CI_JOB_NAME
paths:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment