From 03aec6afa5b55172d274496d4ee57cc4a76ea3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz?= Date: Mon, 1 Jan 2024 10:44:53 +0800 Subject: [PATCH 1/2] [*]Fix AppImage build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8370bfd9..b3c2adc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,7 @@ jobs: - name: Install Dependencies run: |- - sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev locate + sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev locate libfuse2 flutter pub get dart pub global activate flutter_distributor From cce5adc3b001081c55c873262300cf085ccfc38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz?= Date: Mon, 1 Jan 2024 11:31:26 +0800 Subject: [PATCH 2/2] [*]Add LICENSE & Add rpm packaging setting --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ linux/packaging/rpm/make_config.yml | 23 +++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 LICENSE create mode 100644 linux/packaging/rpm/make_config.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3c2adc3..e42c0096 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -146,6 +146,34 @@ jobs: with: name: Linux Artifact(Dist - DEB) path: dist + dist-linux-rpm: + needs: + - build-linux + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + channel: 'stable' + + - name: Install Dependencies + run: |- + flutter pub get + sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev rpm patchelf + dart pub global activate flutter_distributor + + - name: Pack RPM Installer + run: |- + flutter_distributor package --platform linux --target rpm + + - name: Upload Dist Artifact + uses: actions/upload-artifact@v4 + with: + name: Linux Artifact(Dist - RPM) + path: dist build-macos: runs-on: macos-latest diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..69c4dc4e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Muska-Ami. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/linux/packaging/rpm/make_config.yml b/linux/packaging/rpm/make_config.yml new file mode 100644 index 00000000..55036e64 --- /dev/null +++ b/linux/packaging/rpm/make_config.yml @@ -0,0 +1,23 @@ +icon: asset/icon/icon.png +summary: Nya LoCyanFrp! 乐青映射启动器 +group: Application/Network +vendor: Muska_Ami +packager: Muska_Ami +packagerEmail: xmcn@1l1.icu +license: MIT +url: https://github.com/Muska-Ami/NyaLCF + +display_name: Nya LoCyanFrp! + +keywords: + - NyaLCF + - Nya LoCyanFrp! + - nyanana + - LoCyanFrp + +generic_name: NyaLCF + +categories: + - Network + +startup_notify: true \ No newline at end of file