mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-06-29 02:03:10 -04:00
* Revert "feat: use flutter_distrubutor to build linux and macos packages (#7392)"
This reverts commit 6dc45c9830
.
* fix: linux link issue
* fix: outline doesn't work well in columns
* fix: cannot drag a block under a table that’s in the second column
34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
LINUX_RELEASE_PRODUCTION=$1
|
|
VERSION=$2
|
|
PACKAGE_NAME=$3
|
|
|
|
# Define package folders
|
|
PACKAGE=$LINUX_RELEASE_PRODUCTION/package
|
|
LIB=$PACKAGE/usr/lib
|
|
APPLICATIONS=$PACKAGE/usr/share/applications
|
|
ICONS=$PACKAGE/usr/share/icons/hicolor/scalable/apps
|
|
METAINFO=$PACKAGE/usr/share/metainfo
|
|
DEBIAN=$PACKAGE/DEBIAN
|
|
|
|
# Create package folder
|
|
mkdir -p $LIB
|
|
mkdir -p $APPLICATIONS
|
|
mkdir -p $ICONS
|
|
mkdir -p $METAINFO
|
|
mkdir -p $DEBIAN
|
|
|
|
# Configure the package
|
|
cp -R ./scripts/linux_distribution/deb/DEBIAN $PACKAGE
|
|
chmod 0755 $DEBIAN/postinst
|
|
chmod 0755 $DEBIAN/postrm
|
|
grep -rl "\[CHANGE_THIS\]" $DEBIAN/control | xargs sed -i "s/\[CHANGE_THIS\]/$VERSION/"
|
|
|
|
cp -fR $LINUX_RELEASE_PRODUCTION/AppFlowy $LIB
|
|
cp ./scripts/linux_distribution/deb/AppFlowy.desktop $APPLICATIONS
|
|
cp ./scripts/linux_distribution/packaging/io.appflowy.AppFlowy.metainfo.xml $METAINFO
|
|
cp ./scripts/linux_distribution/packaging/appflowy.svg $ICONS
|
|
|
|
# Build the package
|
|
dpkg-deb --build --root-owner-group -Z xz $PACKAGE $LINUX_RELEASE_PRODUCTION/$PACKAGE_NAME
|