From 41c6e274c62e9841ffe6fd17ab706c8071e6fae5 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Wed, 17 Jan 2024 02:17:25 +0100 Subject: [PATCH] new: add deb and rpm build --- .github/workflows/build.yml | 16 +++++++++++-- Makefile | 9 ++++++- linux/packaging/deb/make_config.yaml | 35 ++++++++++++++++++++++++++++ linux/packaging/rpm/make_config.yaml | 30 ++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 linux/packaging/deb/make_config.yaml create mode 100644 linux/packaging/rpm/make_config.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 007f1f7d..2ec1f284 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,12 +39,24 @@ jobs: targets: exe filename: hiddify-windows-x64 - - platform: linux + - platform: linux-appimage os: ubuntu-latest aarch: amd64 targets: AppImage filename: hiddify-linux-x64 + - platform: linux-deb + os: ubuntu-latest + aarch: amd64 + targets: deb + filename: hiddify-debian-x64 + + - platform: linux-rpm + os: ubuntu-latest + aarch: amd64 + targets: rpm + filename: hiddify-rpm-x64 + - platform: macos os: macos-13 aarch: universal @@ -97,7 +109,7 @@ jobs: - name: Setup Linux dependencies if: matrix.platform == 'linux' run: | - sudo apt install -y locate ninja-build pkg-config libgtk-3-dev libglib2.0-dev libgio2.0-cil-dev libayatana-appindicator3-dev fuse + sudo apt install -y locate ninja-build pkg-config libgtk-3-dev libglib2.0-dev libgio2.0-cil-dev libayatana-appindicator3-dev fuse rpm patchelf sudo modprobe fuse wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" chmod +x appimagetool diff --git a/Makefile b/Makefile index f14007dd..34df95d4 100644 --- a/Makefile +++ b/Makefile @@ -63,8 +63,15 @@ android-aab-release: windows-release: flutter_distributor package --platform windows --targets exe $(DISTRIBUTOR_ARGS) -linux-release: +linux-release: linux-appimage-release linux-deb-release linux-rpm-release + +linux-appimage-release: flutter_distributor package --platform linux --targets appimage $(DISTRIBUTOR_ARGS) +linux-deb-release: + flutter_distributor package --platform linux --targets deb $(DISTRIBUTOR_ARGS) +linux-rpm-release: + flutter_distributor package --platform linux --targets rpm $(DISTRIBUTOR_ARGS) + macos-release: flutter_distributor package --platform macos --targets dmg $(DISTRIBUTOR_ARGS) diff --git a/linux/packaging/deb/make_config.yaml b/linux/packaging/deb/make_config.yaml new file mode 100644 index 00000000..f20201df --- /dev/null +++ b/linux/packaging/deb/make_config.yaml @@ -0,0 +1,35 @@ +display_name: HiddifyNext +package_name: hiddify-next +maintainer: + name: hiddify + email: linux@hiddify.com + +priority: optional +section: x11 +installed_size: 6604 +essential: false +icon: ./assets/images/source/ic_launcher_border.png + +postinstall_scripts: + - echo "Installed Hiddify Next" +postuninstall_scripts: + - echo "Surprised Why?" + + +keywords: + - Hiddify + - Proxy + - VPN + - V2ray + - Nekoray + - Xray + - Psiphon + - OpenVPN + + +generic_name: Hiddify + +categories: + - Network + +startup_notify: true \ No newline at end of file diff --git a/linux/packaging/rpm/make_config.yaml b/linux/packaging/rpm/make_config.yaml new file mode 100644 index 00000000..1e474649 --- /dev/null +++ b/linux/packaging/rpm/make_config.yaml @@ -0,0 +1,30 @@ +display_name: HiddifyNext +url: https://github.com/hiddify/hiddify-next/ +license: Other + + +packager: hiddify +packagerEmail: linux@hiddify.com + +priority: optional +section: x11 +installed_size: 6604 +essential: false +icon: ./assets/images/source/ic_launcher_border.png + +keywords: + - Hiddify + - Proxy + - VPN + - V2ray + - Nekoray + - Xray + - Psiphon + - OpenVPN + + +generic_name: Hiddify + +group: Applications/Internet + +startup_notify: true \ No newline at end of file