diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad093602..cd16f7f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,12 +18,12 @@ jobs: - name: Install Flutter uses: subosito/flutter-action@v2 with: - channel: 'stable' - flutter-version: '3.27.3' + channel: "stable" + flutter-version: "3.27.3" - uses: actions/setup-java@v4 with: - distribution: 'zulu' - java-version: '17' + distribution: "zulu" + java-version: "17" - name: Fetch secrets run: | curl -u ${{ secrets.BASIC_AUTH }} -o android/app/app.key ${{ secrets.URL_PREFIX }}app.key @@ -57,27 +57,24 @@ jobs: run: | sudo apt update # Basic - sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev desktop-file-utils + sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev desktop-file-utils wget # App Specific sudo apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev # Packaging - sudo apt install -y rpm patchelf + sudo wget https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage -o /bin/appimagetool - name: Build run: | dart run fl_build - dart run flutter_distributor:main release --name linux --skip-clean + dart run flutter_distributor:main package --platform=linux --target=appimage - name: Rename artifacts run: | - deb_name=$(ls dist/*/*.deb) - mv $deb_name ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.deb - rpm_name=$(ls dist/*/*.rpm) - mv $rpm_name ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.rpm + appimage_name=$(ls dist/*/*.deb) + mv $appimage_name ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.appimage - name: Create Release uses: softprops/action-gh-release@v2 with: files: | - ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.deb - ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.rpm + ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.appimage env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -107,9 +104,9 @@ jobs: # uses: actions/checkout@v4 # - name: Install Flutter # uses: subosito/flutter-action@v2 - # with: - # channel: 'stable' - # flutter-version: '3.22.2' + # with: + # channel: 'stable' + # flutter-version: '3.22.2' # - name: Build # run: dart run fl_build -p ios,mac # - name: Create Release diff --git a/linux/packaging/appimage/make_config.yaml b/linux/packaging/appimage/make_config.yaml new file mode 100644 index 00000000..990c4ec2 --- /dev/null +++ b/linux/packaging/appimage/make_config.yaml @@ -0,0 +1,31 @@ +display_name: ServerBox +package_name: cn.lpkt.serverbox +maintainer: + name: lollipopkit + email: 10864310+lollipopkit@users.noreply.github.com +# co_authors: +# - name: +# email: +priority: optional +section: x11 +installed_size: 6604 +essential: false +icon: assets/app_icon.png + +# postinstall_scripts: +# - echo "Installed my awesome app" +# postuninstall_scripts: +# - echo "Surprised Pickachu face" + +keywords: + - server + - ssh + - sftp + - system + +generic_name: ServerBox + +categories: + - Utility + +startup_notify: true \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index f85c3018..b9339f82 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,14 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + _discoveryapis_commons: + dependency: transitive + description: + name: _discoveryapis_commons + sha256: "113c4100b90a5b70a983541782431b82168b3cae166ab130649c36eb3559d498" + url: "https://pub.dev" + source: hosted + version: "1.0.7" _fe_analyzer_shared: dependency: transitive description: @@ -66,10 +74,10 @@ packages: dependency: transitive description: name: archive - sha256: "08064924cbf0ab88280a0c3f60db9dd24fec693927e725ecb176f16c629d1cb8" + sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "3.6.1" args: dependency: transitive description: @@ -247,6 +255,14 @@ packages: url: "https://github.com/lollipopkit/circle_chart" source: git version: "0.0.3" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c + url: "https://pub.dev" + source: hosted + version: "0.4.2" clock: dependency: transitive description: @@ -296,6 +312,14 @@ packages: url: "https://github.com/lollipopkit/dart_computer" source: git version: "3.2.1" + console: + dependency: transitive + description: + name: console + sha256: e04e7824384c5b39389acdd6dc7d33f3efe6b232f6f16d7626f194f6a01ad69a + url: "https://pub.dev" + source: hosted + version: "4.1.0" convert: dependency: transitive description: @@ -488,6 +512,30 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_app_builder: + dependency: transitive + description: + name: flutter_app_builder + sha256: "74018c0e2da3ae33073e7417b5c8e900fdc7b5ebc3bdacd2dd05244d9b5e54cb" + url: "https://pub.dev" + source: hosted + version: "0.4.5" + flutter_app_packager: + dependency: transitive + description: + name: flutter_app_packager + sha256: "3925c4e2ac53f4a5ce3bae1a5f54966620504d6c28725b112074cfbdf227a36b" + url: "https://pub.dev" + source: hosted + version: "0.4.5" + flutter_app_publisher: + dependency: transitive + description: + name: flutter_app_publisher + sha256: bbb1953ef723fc98a7f974ae9499194999f570194c6d856182518e6e73b51ff2 + url: "https://pub.dev" + source: hosted + version: "0.4.5" flutter_displaymode: dependency: "direct main" description: @@ -496,6 +544,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.6.0" + flutter_distributor: + dependency: "direct main" + description: + name: flutter_distributor + sha256: "45d27526a5de93370e322da5314b0a1c07c024b79031a8ad44435046915fa0e8" + url: "https://pub.dev" + source: hosted + version: "0.4.5" flutter_highlight: dependency: "direct main" description: @@ -663,6 +719,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.0" + get_it: + dependency: transitive + description: + name: get_it + sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 + url: "https://pub.dev" + source: hosted + version: "7.7.0" glob: dependency: transitive description: @@ -671,6 +735,30 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.2" + google_identity_services_web: + dependency: transitive + description: + name: google_identity_services_web + sha256: "55580f436822d64c8ff9a77e37d61f5fb1e6c7ec9d632a43ee324e2a05c3c6c9" + url: "https://pub.dev" + source: hosted + version: "0.3.3" + googleapis: + dependency: transitive + description: + name: googleapis + sha256: "864f222aed3f2ff00b816c675edf00a39e2aaf373d728d8abec30b37bee1a81c" + url: "https://pub.dev" + source: hosted + version: "13.2.0" + googleapis_auth: + dependency: transitive + description: + name: googleapis_auth + sha256: befd71383a955535060acde8792e7efc11d2fccd03dd1d3ec434e85b68775938 + url: "https://pub.dev" + source: hosted + version: "1.6.0" graphs: dependency: transitive description: @@ -779,10 +867,10 @@ packages: dependency: transitive description: name: image - sha256: "599d08e369969bdf83138f5b4e0a7e823d3f992f23b8a64dd626877c37013533" + sha256: f31d52537dc417fdcde36088fdf11d191026fd5e4fae742491ebd40e5a8bea7d url: "https://pub.dev" source: hosted - version: "4.4.0" + version: "4.3.0" intl: dependency: "direct main" description: @@ -863,6 +951,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.0" + liquid_engine: + dependency: transitive + description: + name: liquid_engine + sha256: "41ae12d5a72451c3efb8d4e7b901cdf0537917597bc7e7376e9b0a237f92df29" + url: "https://pub.dev" + source: hosted + version: "0.2.2" local_auth: dependency: transitive description: @@ -967,6 +1063,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.0" + msix: + dependency: transitive + description: + name: msix + sha256: c50d6bd1aafe0d071a3c1e5a5ccb056404502935cb0a549e3178c4aae16caf33 + url: "https://pub.dev" + source: hosted + version: "3.16.8" + mustache_template: + dependency: transitive + description: + name: mustache_template + sha256: a46e26f91445bfb0b60519be280555b06792460b27b19e2b19ad5b9740df5d1c + url: "https://pub.dev" + source: hosted + version: "2.0.0" nested: dependency: transitive description: @@ -999,6 +1111,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.2" + parse_app_package: + dependency: transitive + description: + name: parse_app_package + sha256: "69f313fbadf457576015333a8da2e99018763dce88df248febcfb8883da8aedb" + url: "https://pub.dev" + source: hosted + version: "0.4.5" path: dependency: transitive description: @@ -1096,6 +1216,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.6" + plist_parser: + dependency: transitive + description: + name: plist_parser + sha256: e2a6f9abfa0c45c0253656b7360abb0dfb84af9937bace74605b93d2aad2bf0c + url: "https://pub.dev" + source: hosted + version: "0.0.11" plugin_platform_interface: dependency: transitive description: @@ -1120,14 +1248,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" - posix: - dependency: transitive - description: - name: posix - sha256: a0117dc2167805aa9125b82eee515cc891819bac2f538c83646d355b16f58b9a - url: "https://pub.dev" - source: hosted - version: "6.0.1" pretty_qr_code: dependency: transitive description: @@ -1160,6 +1280,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" + qiniu_sdk_base: + dependency: transitive + description: + name: qiniu_sdk_base + sha256: "2506c6372512f81cfbddf162ea6da1ad7b1c6521dee1d10e9da6847c92e13349" + url: "https://pub.dev" + source: hosted + version: "0.5.2" qr: dependency: transitive description: @@ -1184,6 +1312,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.2.2" + recase: + dependency: transitive + description: + name: recase + sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213 + url: "https://pub.dev" + source: hosted + version: "4.1.0" screen_retriever: dependency: transitive description: @@ -1320,6 +1456,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.1" + shell_executor: + dependency: transitive + description: + name: shell_executor + sha256: "9c024546fc96470a6b96be9902f0bc05347a017a7638ed8d93c77e8d77eb3c3c" + url: "https://pub.dev" + source: hosted + version: "0.1.6" + shell_uikit: + dependency: transitive + description: + name: shell_uikit + sha256: "03703090807091514ace2f9c8dc5d9b2d18c42a248c767220167825fbc3d2747" + url: "https://pub.dev" + source: hosted + version: "0.1.1" sky_engine: dependency: transitive description: flutter @@ -1349,14 +1501,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.10.0" - sprintf: - dependency: transitive - description: - name: sprintf - sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" - url: "https://pub.dev" - source: hosted - version: "7.0.0" stack_trace: dependency: transitive description: @@ -1513,10 +1657,10 @@ packages: dependency: transitive description: name: uuid - sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff + sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" url: "https://pub.dev" source: hosted - version: "4.5.1" + version: "3.0.7" vector_graphics: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index cb973b5f..44c8f0ff 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -64,6 +64,7 @@ dependencies: git: url: https://github.com/lppcg/fl_lib ref: v1.0.235 + flutter_distributor: ^0.4.5 dependency_overrides: # dartssh2: