Skip to content

Commit 6dbb08c

Browse files
committed
fix: move deb control file to linux_installer
1 parent 32be754 commit 6dbb08c

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,7 @@ jobs:
7878
mkdir -p ../${{ env.LINUX_APP_RELEASE_PATH }}/package/usr/share/applications
7979
cp -r ./scripts/linux_installer ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
8080
cd ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
81-
# Create control file
82-
printf 'Package: AppFlowy
83-
Version: %s
84-
Depends: libkeybinder-3.0-0
85-
Architecture: amd64
86-
Essential: no
87-
Priority: optional
88-
Maintainer: AppFlowy
89-
Description: An Open Source Alternative to Notion\n' "${{ github.ref_name }}" > control
81+
grep -rl "\[CHANGE_THIS\]" ./control | xargs sed -i "s/\[CHANGE_THIS\]/${{ github.ref_name }}/"
9082
chmod 0755 {postinst,postrm}
9183
9284
- name: Build Linux package
@@ -171,15 +163,7 @@ jobs:
171163
mkdir -p ../${{ env.LINUX_APP_RELEASE_PATH }}/package/usr/share/applications
172164
cp -r ./scripts/linux_installer ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
173165
cd ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
174-
# Create control file
175-
printf 'Package: AppFlowy
176-
Version: %s
177-
Depends: libkeybinder-3.0-0
178-
Architecture: amd64
179-
Essential: no
180-
Priority: optional
181-
Maintainer: AppFlowy
182-
Description: An Open Source Alternative to Notion\n' "${{ github.ref_name }}" > control
166+
grep -rl "\[CHANGE_THIS\]" ./control | xargs sed -i "s/\[CHANGE_THIS\]/${{ github.ref_name }}/"
183167
chmod 0755 {postinst,postrm}
184168
185169
- name: Build Linux package
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Package: AppFlowy
2+
Version: [CHANGE_THIS]
3+
Depends: libkeybinder-3.0-0
4+
Architecture: amd64
5+
Essential: no
6+
Priority: optional
7+
Maintainer: AppFlowy
8+
Description: An Open Source Alternative to Notion

0 commit comments

Comments
 (0)