This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
forked from vaibhavpandeyvpz/apkstudio
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
49 lines (38 loc) · 1.43 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: cpp
branches:
only:
- master
os:
- linux
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
- sudo apt-get install qt5-default qttools5-dev-tools
script:
- lrelease res/lang/en.ts
- qmake apkstudio.pro CONFIG+=release
- make
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
- mkdir apkstudio-latest-release
- cd apkstudio-latest-release
- cp ../apkstudio .
- ../linuxdeployqt*.AppImage apkstudio -bundle-non-qt-libs -no-translations -verbose=2 -appimage -no-copy-copyright-files
# removing doc folder, apprun shortcut and .DirIcon
# - rm -rf doc AppRun .DirIcon
# removing extra libraries
# - cd lib && mv libQt5Core.so.5 libQt5Gui.so.5 libQt5Widgets.so.5 libicu* .. && rm -r * && mv ../libQ* ../libi* . && cd ..
#
# - rm -rf plugins/imageformats/ plugins/platforminputcontexts/ plugins/xcbglintegrations/
# - cd ..
# - env GZIP=-9 tar -zvcf apkstudio-latest-release.tar.gz apkstudio-latest-release
after_script:
- curl --upload-file ./*.AppImage https://transfer.sh/apkstudio-$(git rev-parse --short HEAD)-linux_x86_64.AppImage
# deploy:
# provider: releases
# api_key: $GITHUB OAUTH TOKEN"
# file: "*.AppImage"
# overwrite: true
# skip_cleanup: true
# # on:
# # tags: true