File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 8585 Maintainer: AppFlowy
8686 Description: An Open Source Alternative to Notion\n' "${{ github.ref_name }}" > DEBIAN/control
8787
88+ # postinst script for creating symlink
89+ printf '#!/bin/bash
90+ if [ -e /usr/local/bin/appflowy ]; then
91+ echo "Symlink already exists, skipping."
92+ else
93+ echo "Creating Symlink in /usr/local/bin/appflowy"
94+ ln -s /opt/AppFlowy/app_flowy /usr/local/bin/appflowy
95+ fi' > DEBIAN/postinst
96+ chmod 0755 DEBIAN/postinst
97+
98+ # postrm script for cleaning up residuals
99+ printf '#!/bin/bash
100+ if [ -e /usr/local/bin/appflowy ]; then
101+ rm /usr/local/bin/appflowy
102+ fi' > DEBIAN/postrm
103+ chmod 0755 DEBIAN/postrm
104+
88105 mkdir -p usr/share/applications
89106 # Update Exec & icon path in desktop entry
90107 grep -rl "\[CHANGE_THIS\]" ./opt/AppFlowy/appflowy.desktop.temp | xargs sed -i "s/\[CHANGE_THIS\]/\/opt/"
You can’t perform that action at this time.
0 commit comments