Skip to content

Commit

Permalink
add a simple deb packaging script to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
digarok committed Aug 22, 2018
1 parent 7ede7d0 commit 5d91af6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,36 @@ package-ubuntu-sdl2:
paths:
- gsplus-ubuntu-sdl.tar.bz2
expire_in: 10 minutes

package-ubuntu-sdl2-deb:
tags:
- ubuntu
stage: package
variables:
GIT_STRATEGY: fetch
PACKAGE_NAME: gsplus_$CI_BUILD_ID-0
script:
- mkdir -p $PACKAGE_NAME/usr/local/bin
- mkdir -p $PACKAGE_NAME/DEBIAN
- cp gsplus $PACKAGE_NAME/usr/local/bin
- cp assets/control $PACKAGE_NAME/DEBIAN
- dpkg-dev --build $PACKAGE_NAME
artifacts:
paths:
- $PACKAGE_NAME
expire_in: 10 minutes

deploy-ubuntu:
tags:
- ubuntu
stage: deploy
variables:
GIT_STRATEGY: none
PACKAGE_NAME: gsplus_$CI_BUILD_ID-0

script:
- aws s3 cp gsplus-ubuntu-sdl.tar.bz2 s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl/$CI_BUILD_ID/ --acl public-read

- aws s3 cp $PACKAGE_NAME s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl-deb/$CI_BUILD_ID/ --acl public-read



Expand Down Expand Up @@ -270,6 +291,7 @@ deploy-win-sdl2:
update-website-universal:
tags:
- osx
- linux
stage: updatewebsite
variables:
GIT_STRATEGY: none
Expand Down
10 changes: 10 additions & 0 deletions assets/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: gsplus
Version: 0.14-0
Section: base
Priority: optional
Architecture: amd64
Depends: libsdl2-2.0-0, libfreetype6, libsdl2-image-2.0-0
Maintainer: Dagen Brock <[email protected]>
Description: GSplus
An Apple IIgs emulator for multiple platforms,
based on KEGS

0 comments on commit 5d91af6

Please sign in to comment.