Skip to content

Commit

Permalink
build ayugram
Browse files Browse the repository at this point in the history
  • Loading branch information
solopasha committed Aug 31, 2024
1 parent a656284 commit 3866fc5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 17 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/
26 changes: 9 additions & 17 deletions org.telegram.desktop.yml → com.ayugram.desktop.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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
Expand Down Expand Up @@ -38,6 +38,10 @@ cleanup-commands:
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg
- mkdir -p ${FLATPAK_DEST}/lib/webview
build-options:
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 @@ -447,27 +451,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: f6c816cafe58edd460253d126046efafd775b3d0
tag: v5.4.4
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: 0979ab0b5f1cd411df86609177d0d89cc9c5752c
- type: shell
commands:
- sed -i '/-Werror/d' Telegram/ThirdParty/dispatch/cmake/modules/DispatchCompilerWarnings.cmake

0 comments on commit 3866fc5

Please sign in to comment.