Skip to content

Commit

Permalink
build ayugram
Browse files Browse the repository at this point in the history
  • Loading branch information
solopasha committed Oct 22, 2024
1 parent fb2eb6e commit 0bff8d7
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 @@ -37,6 +37,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 @@ -429,27 +433,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: 754d4674402523b768226b2ef9c6b26b81aecedd
tag: v5.6.3
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: 4e0ffc1e28af8059c1d2b12fb6e558eb439294e6
- type: shell
commands:
- sed -i '/-Werror/d' Telegram/ThirdParty/dispatch/cmake/modules/DispatchCompilerWarnings.cmake

0 comments on commit 0bff8d7

Please sign in to comment.