Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: move deb control file to linux_installer

ramanverma2k6dbb08c2ae9e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b146deec96..c13d856f21 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -78,15 +78,7 @@ jobs:
mkdir -p ../${{ env.LINUX_APP_RELEASE_PATH }}/package/usr/share/applications
cp -r ./scripts/linux_installer ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
cd ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
- # Create control file
- printf 'Package: AppFlowy
- Version: %s
- Depends: libkeybinder-3.0-0
- Architecture: amd64
- Essential: no
- Priority: optional
- Maintainer: AppFlowy
- Description: An Open Source Alternative to Notion\n' "${{ github.ref_name }}" > control
+ grep -rl "\[CHANGE_THIS\]" ./control | xargs sed -i "s/\[CHANGE_THIS\]/${{ github.ref_name }}/"
chmod 0755 {postinst,postrm}
- name: Build Linux package
@@ -171,15 +163,7 @@ jobs:
mkdir -p ../${{ env.LINUX_APP_RELEASE_PATH }}/package/usr/share/applications
cp -r ./scripts/linux_installer ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
cd ../${{ env.LINUX_APP_RELEASE_PATH }}/package/DEBIAN
- # Create control file
- printf 'Package: AppFlowy
- Version: %s
- Depends: libkeybinder-3.0-0
- Architecture: amd64
- Essential: no
- Priority: optional
- Maintainer: AppFlowy
- Description: An Open Source Alternative to Notion\n' "${{ github.ref_name }}" > control
+ grep -rl "\[CHANGE_THIS\]" ./control | xargs sed -i "s/\[CHANGE_THIS\]/${{ github.ref_name }}/"
chmod 0755 {postinst,postrm}
- name: Build Linux package
diff --git a/frontend/scripts/linux_installer/control b/frontend/scripts/linux_installer/control
new file mode 100644
index 0000000000..bcdd830fe6
--- /dev/null
+++ b/frontend/scripts/linux_installer/control
@@ -0,0 +1,8 @@
+Package: AppFlowy
+Version: [CHANGE_THIS]
+Depends: libkeybinder-3.0-0
+Architecture: amd64
+Essential: no
+Priority: optional
+Maintainer: AppFlowy
+Description: An Open Source Alternative to Notion