This repository has been archived on 2021-02-20. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-20 01:34:46 +01:00
|
|
|
kind: pipeline type: docker name: Shapez.io steps: - name: linux
|
|
|
|
pull: if-not-exists
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt upgrade -y
|
|
|
|
- apt install -y libavformat-dev libavfilter-dev libavdevice-dev ffmpeg openjdk-8-jre zip
|
|
|
|
#- npm install -g yarn
|
|
|
|
- yarn
|
|
|
|
- cd electron
|
|
|
|
- yarn
|
|
|
|
- cd ..
|
|
|
|
- cd gulp
|
|
|
|
- yarn
|
|
|
|
- yarn gulp build.standalone-prod
|
|
|
|
- yarn gulp standalone.prepare
|
|
|
|
- yarn gulp standalone.package.prod.linux64
|
|
|
|
- yarn gulp standalone.package.prod.linux32
|
|
|
|
- cd ..
|
|
|
|
- cd tmp_standalone_files/shapez.io-standalone-linux-x64
|
|
|
|
- zip -r ../build.x64.zip *
|
|
|
|
- cd ..
|
|
|
|
- cd shapez.io-standalone-linux-ia32
|
|
|
|
- zip -r ../build.x32.zip *
|
|
|
|
- cd ../../
|
|
|
|
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea-key
|
|
|
|
base_url: https://gitea.em-ingee.ovh
|
|
|
|
files:
|
|
|
|
- tmp_standalone_files/build.x64.zip
|
|
|
|
- tmp_standalone_files/build.x32.zip
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
when:
|
|
|
|
event: tag
|
2021-02-20 01:40:34 +01:00
|
|
|
|
2021-02-20 01:34:46 +01:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- tag
|