mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-17 22:16:04 +00:00

* feat: use flutter_distrubutor to build linux packages * feat: verify deb on Linux * chore: update rpm deps * chore: update codesign files * chore: update rpm make_config.yaml * chore: update release.yml * chore: update release.yml * chore: update feed url * chore: rename AppFlowy to appflowy * chore: update CHANGELOG.md (#7397) * chore: create release path if not exist * feat: support appimage * Revert "feat: support appimage" This reverts commit cb7dcf725c9443f5f9d0e3c3ceb4413a4f875e6a. * fix: cp deb/rpm error * feat: support appimage * chore: add linux build script * feat: add macos build script * feat: update linux scripts * chore: update linux scripts * chore: update relesae script * chore: update macos build scripts * chore: rename macOS package name * chore: add keychain in release.yaml * chore: update macos build steps in release.yaml * chore: update macos script desc * chore: remove sudo * feat: support tar.xz package type * feat: support tar.xz package type * chore: add fuse --------- Co-authored-by: Morn <agedchen@gmail.com>
35 lines
1.0 KiB
Bash
35 lines
1.0 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
|