-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcom.sublimemerge.App.yaml
147 lines (143 loc) · 5.73 KB
/
com.sublimemerge.App.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
app-id: com.sublimemerge.App
command: sublime_merge
runtime: org.freedesktop.Sdk
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
add-extensions:
org.freedesktop.Sdk.Extension.llvm17:
directory: llvm
version: '23.08'
no-autodownload: true
separate-locales: false
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --socket=ssh-auth # for pushing to git remotes over SSH
- --share=network
- --filesystem=host # uses the SDK's git binary directly, no portals
- --filesystem=xdg-run/gnupg:ro # for signing commits
- --own-name=com.sublimemerge # app doesn't follow the app ID spec
- --device=dri
- --env=PATH=/usr/bin:/app/bin:/app/llvm/bin
- --env=CLANG_FORMAT_DIFF=python3 /app/llvm/share/clang/clang-format-diff.py
modules:
- name: git-lfs
buildsystem: simple
build-commands:
- PREFIX=${FLATPAK_DEST} ./install.sh
sources:
- type: archive
only-arches: [x86_64]
strip-components: 1
url: https://github.com/git-lfs/git-lfs/releases/download/v3.6.0/git-lfs-linux-amd64-v3.6.0.tar.gz
sha256: fff4746159aa7a7b42ef1aa30fed03b534df48a7dbe116d65296c0f0c43c594d
x-checker-data:
type: json
url: https://api.github.com/repos/git-lfs/git-lfs/releases/latest
url-query: .assets[] | select(.name=="git-lfs-linux-amd64-" + $version +
".tar.gz") | .browser_download_url
version-query: .tag_name
- type: archive
only-arches: [aarch64]
strip-components: 1
url: https://github.com/git-lfs/git-lfs/releases/download/v3.6.0/git-lfs-linux-arm64-v3.6.0.tar.gz
sha256: 9509504b3b825054c3d07af5edc1cc9c00732c6f0fd4a060f04bfbf0f1279fca
x-checker-data:
type: json
url: https://api.github.com/repos/git-lfs/git-lfs/releases/latest
url-query: .assets[] | select(.name=="git-lfs-linux-arm64-" + $version +
".tar.gz") | .browser_download_url
version-query: .tag_name
# Dependency for git-flow
- name: shFlags
buildsystem: simple
build-commands:
- install -m 0644 src/shflags ${FLATPAK_DEST}/bin/gitflow-shFlags
sources:
- type: git
url: https://github.com/nvie/shFlags.git
commit: 2fb06af13de884e9680f14a00c82e52a67c867f1
- name: git-flow
buildsystem: simple
build-commands:
- install -m 0755 git-flow ${FLATPAK_DEST}/bin
- install -m 0644 git-flow-init git-flow-feature git-flow-hotfix git-flow-release
git-flow-support git-flow-version gitflow-common ${FLATPAK_DEST}/bin
sources:
- type: archive
url: https://github.com/nvie/gitflow/archive/refs/tags/0.4.1.tar.gz
sha256: c1271b0ba2c6655e4ad4d79562f6a910c3b884f3d4e16985e227e67f8d95c180
- name: sublime_merge
buildsystem: simple
build-commands:
- mkdir -p /app/bin
- mkdir -p /app/lib
- install sublime_merge.sh /app/bin/sublime_merge
- install -Dm644 ${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 ${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop
- for s in {32,64,128,256,512}; do env MAGICK_TIME_LIMIT=30 convert "${FLATPAK_ID}.png"
-resize "${s}" "${FLATPAK_ID}-${s}.png"; install -Dm644 "${FLATPAK_ID}-${s}.png"
"/app/share/icons/hicolor/${s}x${s}/apps/${FLATPAK_ID}.png"; done;
- install apply_extra /app/bin
sources:
- type: script
dest-filename: apply_extra
commands:
- ar x sublime_merge.deb
- rm -f sublime_merge.deb
- tar xf data.tar.xz
- rm -f control.tar.xz data.tar.xz debian-binary
- mv usr/* .
- rmdir usr
- sed -i 's:/opt/sublime_merge/sublime_merge:/app/extra/opt/sublime_merge/sublime_merge:'
/app/extra/bin/smerge
- type: script
dest-filename: sublime_merge.sh
commands:
- export PATH="$PATH:/app/libexec/git-lfs"
- exec /app/extra/bin/smerge $@
- type: extra-data
only-arches: [x86_64]
filename: sublime_merge.deb
url: https://download.sublimetext.com/sublime-merge_build-2102_amd64.deb
sha256: adbf53c6c95c9f6156463bb03ceeb88e231ce9aa990db01322fc0418ae25e55e
size: 5141116
x-checker-data:
type: html
url: https://www.sublimemerge.com/download_thanks
version-pattern: https://download.sublimetext.com/sublime-merge_build-([\d\.-]*)_amd64.deb
url-template: https://download.sublimetext.com/sublime-merge_build-${version}_amd64.deb
- type: extra-data
only-arches: [aarch64]
filename: sublime_merge.deb
url: https://download.sublimetext.com/sublime-merge_build-2102_arm64.deb
sha256: 8a37be2d7918bc49b8e6f5cb1b07bec15645b88210b065f3bb43f9be9e399f38
size: 5043020
x-checker-data:
type: html
url: https://www.sublimemerge.com/download_thanks
version-pattern: https://download.sublimetext.com/sublime-merge_build-([\d\.-]*)_arm64.deb
url-template: https://download.sublimetext.com/sublime-merge_build-${version}_arm64.deb
- type: file
path: com.sublimemerge.App.metainfo.xml
- type: file
path: com.sublimemerge.App.desktop
- type: file
path: com.sublimemerge.App.png
- type: shell
commands:
- mkdir -p /app/llvm
modules:
- name: ImageMagick
config-opts:
- --disable-static
- --disable-docs
- --with-hdri
- --with-pic
sources:
- type: archive
url: https://github.com/ImageMagick/ImageMagick/archive/7.1.1-20.tar.gz
sha256: 8e2a0b5feaa6a8004b7d611e46984eb2217eeaff8347c5642e6ce84ecaf16446
cleanup:
- '*'