diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cb05d3d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +stages: + - build + +build: + image: mcr.microsoft.com/dotnet/sdk:6.0 + stage: build + only: + - master + artifacts: + paths: + - publish + script: + bash build.sh \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..b5407b0 --- /dev/null +++ b/build.sh @@ -0,0 +1,14 @@ +mkdir Temp +mkdir publish +cd Temp +wget -O tib https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage +chmod 755 tib +apt update +apt install -y binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync +./tib --appimage-extract +ln -s appimagetool squashfs-root/AppRun +export PATh=$PATH:$PWD +cd ../Timelapse.Linux +make +mv *.tar.gz ../publish/ +mv *.AppImage ../publish/