File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed
frontend/scripts/linux_installer Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments