Adapt snap build for Kotatogram

This commit is contained in:
Eric Kotato 2020-01-28 22:54:49 +03:00
parent 5b9bc084f9
commit af8d7ad4dd
2 changed files with 11 additions and 11 deletions

View file

@ -73,14 +73,14 @@ jobs:
if: steps.cache-enchant.outputs.cache-hit != 'true'
run: snapcraft build --destructive-mode enchant
- name: Telegram Desktop snap build.
- name: Kotatogram Desktop snap build.
if: env.ONLY_CACHE == 'false'
run: snapcraft --destructive-mode
- name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true'
run: |
artifact_name=$(echo telegram-desktop_*.snap)
artifact_name=$(echo kotatogram-desktop_*.snap)
echo ::set-env name=ARTIFACT_NAME::$artifact_name
mkdir artifact

View file

@ -1,5 +1,5 @@
name: telegram-desktop
adopt-info: telegram
name: kotatogram-desktop
adopt-info: kotatogram
icon: Telegram/Resources/art/icon512@2x.png
base: core18
@ -7,10 +7,10 @@ grade: stable
confinement: strict
apps:
telegram-desktop:
command: bin/desktop-launch telegram-desktop
common-id: org.telegram.desktop
desktop: share/applications/telegramdesktop.desktop
kotatogram-desktop:
command: bin/desktop-launch kotatogram-desktop
common-id: io.github.kotatogram
desktop: share/applications/kotatogramdesktop.desktop
environment:
# Use GTK3 cursor theme, icon theme and open/save file dialogs.
QT_QPA_PLATFORMTHEME: gtk3
@ -42,11 +42,11 @@ plugs:
default-provider: gtk-common-themes
parts:
telegram:
kotatogram:
plugin: cmake
source: .
source-type: git
parse-info: [share/metainfo/telegramdesktop.appdata.xml]
parse-info: [share/metainfo/kotatogramdesktop.appdata.xml]
build-packages:
- gcc-8
- g++-8
@ -108,7 +108,7 @@ parts:
snapcraftctl set-version "$version"
sed -i 's|^Icon=.*|Icon=/share/icons/hicolor/512x512/apps/telegram.png|g' lib/xdg/telegramdesktop.desktop
sed -i 's|^Icon=.*|Icon=/share/icons/hicolor/512x512/apps/kotatogram.png|g' lib/xdg/kotatogramdesktop.desktop
after:
- cmake
- desktop-qt5