Skip to content

Commit

Permalink
build ayugram
Browse files Browse the repository at this point in the history
  • Loading branch information
solopasha committed Feb 22, 2024
1 parent dd43793 commit e431141
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 21 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ayugram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
workflow_dispatch:
name: CI
jobs:
flatpak:
name: 'Flatpak'
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
options: --privileged
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Restore cache
id: cache
uses: actions/cache/restore@v4
with:
path: .flatpak-builder
key: ayugram-flatpak-${{ github.sha }}
restore-keys: ayugram-flatpak-

- uses: flatpak/flatpak-github-actions/[email protected]
with:
bundle: ayugram.flatpak
manifest-path: com.ayugram.desktop.yml
cache: false

- name: Save cache
id: cache-save
uses: actions/cache/save@v4
if: always()
with:
path: .flatpak-builder
key: ${{ steps.cache.outputs.cache-primary-key }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.flatpak-builder/
.vscode/
repo/
30 changes: 9 additions & 21 deletions org.telegram.desktop.yml → com.ayugram.desktop.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
id: org.telegram.desktop
id: com.ayugram.desktop
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: telegram-desktop
rename-icon: telegram
command: ayugram-desktop
rename-icon: ayugram
finish-args:
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --device=all
- --talk-name=org.gnome.Mutter.IdleMonitor
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=com.canonical.AppMenu.Registrar
Expand Down Expand Up @@ -38,8 +36,10 @@ cleanup-commands:
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg
- mkdir -p ${FLATPAK_DEST}/lib/webview
build-options:
cflags: -DNDEBUG
cxxflags: -DNDEBUG
strip: true
no-debuginfo: true
cflags: -DNDEBUG -g0
cxxflags: -DNDEBUG -g0
append-path: /usr/lib/sdk/llvm16/bin
append-ld-library-path: /usr/lib/sdk/llvm16/lib
cleanup:
Expand Down Expand Up @@ -528,27 +528,15 @@ modules:
- name: telegram-desktop
buildsystem: cmake-ninja
builddir: true
build-options:
arch:
aarch64:
cflags: -g1
cxxflags: -g1
config-opts:
- -DCMAKE_BUILD_TYPE=None
- -DTDESKTOP_API_ID=611335
- -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
- -DDESKTOP_APP_USE_PACKAGED_LAZY=ON
sources:
- type: git
url: https://github.com/telegramdesktop/tdesktop.git
commit: cb065146c2377a16c287d667e35f014956069953
tag: v4.15.0
x-checker-data:
type: json
url: https://api.github.com/repos/telegramdesktop/tdesktop/releases
tag-query: first | .tag_name
timestamp-query: first | .published_at
version-query: $tag | sub("^[vV]"; "")
url: https://github.com/AyuGram/AyuGramDesktop.git
commit: bf5337259d7528d0a40a6241eab8134097cf78c7
- type: shell
commands:
- sed -i '/-Werror/d' Telegram/ThirdParty/dispatch/cmake/modules/DispatchCompilerWarnings.cmake

0 comments on commit e431141

Please sign in to comment.