Commit 826b8f91 authored by Jeremiah Foster's avatar Jeremiah Foster
Browse files

Trying to make the proper deb package name modular for build system

parent f0bffa2c
Pipeline #8918 failed with stage
in 1 minute and 10 seconds
variables: variables:
DEB_VERSION: "0.1-1pureos1" DEB_VERSION: "0.1"
PUREOS_VERSION: "-1pureos1"
DEB_NAME: "flossy-gnu" DEB_NAME: "flossy-gnu"
BUILD_NAME: "game" BUILD_NAME: "game"
GODOT_VERSION: "3.0.6" GODOT_VERSION: "3.0.6"
...@@ -10,7 +11,7 @@ purism: ...@@ -10,7 +11,7 @@ purism:
before_script: before_script:
- apt-get update -q - apt-get update -q
- apt-get install -yq wget unzip fakeroot debhelper - apt-get install -yq wget unzip fakeroot debhelper
- mkdir -v -p ./downloads ./build/$DEB_NAME-$DEB_VERSION - mkdir -v -p ./downloads ./build/$DEB_NAME-$DEB_VERSION-$PUREOS_VERSION
- mkdir -v -p ~/.local/share/godot/templates ~/.cache ~/.config/godot - mkdir -v -p ~/.local/share/godot/templates ~/.cache ~/.config/godot
- cd ./downloads - cd ./downloads
- wget "http://download.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_linux_headless.64.zip" - wget "http://download.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_linux_headless.64.zip"
...@@ -34,7 +35,7 @@ purism: ...@@ -34,7 +35,7 @@ purism:
- fakeroot dpkg-buildpackage -F - fakeroot dpkg-buildpackage -F
- ls -la .. - ls -la ..
artifacts: artifacts:
name: $DEB_NAME-$DEB_VERSION-$CI_JOB_NAME name: $DEB_NAME-$DEB_VERSION-$PUREOS_VERSION-$CI_JOB_NAME
paths: paths:
- ./build - ./build
tags: tags:
......
...@@ -14,11 +14,22 @@ git clone https://source.puri.sm/Purism/flossy-gnu.git ...@@ -14,11 +14,22 @@ git clone https://source.puri.sm/Purism/flossy-gnu.git
TODO... TODO...
``` ```
Build deb/flatpak Build flossy-gnu on GNU/Linux
----------------- -----------------
TODO... flossy-gnu is a game built with the Godot game engine. If you're
building the in a Gitlab pipeline, please see the file .gitlab-ci.yml
for Gitlab continuous intgration.
If you're on a Debian based system, you can install needed
dependencies for the Godot game engine this way
1. run `sudo apt update && sudo apt install -yq wget unzip fakeroot debhelper`
2. mkdir -v -p ./downloads ./build/flossy-gnu ~/.local/share/godot/templates ~/.cache ~/.config/godot
- cd ./downloads - wget "http://download.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_linux_headless.64.zip" - wget "http://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_export_templates.tpz" - unzip Godot_v*_linux_headless.64.zip - unzip Godot_v*_export_templates.tpz - mv -v Godot_v*_linux_headless.64 /bin/godot - mv -v templates ~/.local/share/godot/templates/${GODOT_VERSION}.${GODOT_VARIANT} - cd .. - rm -rf ./downloads script: - godot -v -q --path ./$BUILD_NAME --export "Linux/X11" ../build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64 - 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 - 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 ..
## License and Copyright ## License and Copyright
Copyright © 2019 Purism SPC Copyright © 2019 Purism SPC
......
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