From 31834d702e60d32188f4b9805389f1686b625bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=98=E8=8F=98?= Date: Thu, 16 Sep 2021 23:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=8C=AF=E8=AA=A4=E4=BF=AE=E5=BE=A9=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=BE=A9Build=E8=85=B3=E6=9C=AC=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Build.yml | 18 +++++++++--------- lib/main.dart | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 18790ead..dff2ec5d 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -18,7 +18,7 @@ jobs: - run: sudo apt-get update - run: sudo apt-get install ninja-build libgtk-3-dev libblkid-dev - run: flutter config --enable-linux-desktop - - run: flutter build linux --dart-define="build_id=${{ github.run_number }}" --dart-define="version_type=alpha" --dart-define="version=1.0.0" + - run: flutter build linux --dart-define="build_id=${{ github.run_number }}" --dart-define="version_type=dev" --dart-define="version=1.0.0" - run: | cd build/linux/x64/release/bundle chmod +x RPMLauncher @@ -42,7 +42,7 @@ jobs: channel: beta - run: | flutter config --enable-windows-desktop - flutter build windows --dart-define="build_id=${{ github.run_number }}" --dart-define="version_type=alpha" --dart-define="version=1.0.0" + flutter build windows --dart-define="build_id=${{ github.run_number }}" --dart-define="version_type=dev" --dart-define="version=1.0.0" flutter pub run msix:create --v 1.0.0.${{ github.run_number }} cd scripts/Updater dart pub get @@ -74,16 +74,16 @@ jobs: # with: # channel: beta # - run: flutter config --enable-macos-desktop - # - run: flutter build macos --dart-define="build_id=${{ github.run_number }}" --dart-define="version_type=alpha" --dart-define="version=1.0.0" + # - run: flutter build macos --dart-define="build_id=${{ github.run_number }}" --dart-define="version_type=dev" --dart-define="version=1.0.0" # - run: | # mkdir rpmlauncher.app # cp -R -f build/macos/Build/Products/Release/rpmlauncher.app rpmlauncher.app - - name: "Update File" - uses: actions/upload-artifact@v2 - with: - name: RPMLauncher-${{ github.run_number }}-macos - path: rpmlauncher.app - retention-days: 1 + # - name: "Update File" + # uses: actions/upload-artifact@v2 + # with: + # name: RPMLauncher-${{ github.run_number }}-macos + # path: rpmlauncher.app + # retention-days: 1 PreRelease: needs: ["Linux","Windows"] runs-on: ubuntu-latest diff --git a/lib/main.dart b/lib/main.dart index aa7e9466..839332fe 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -2,6 +2,7 @@ import 'dart:convert'; import 'dart:io'; import 'dart:ui'; +import 'package:flutter/services.dart'; import 'package:flutter_markdown/flutter_markdown.dart'; import 'package:rpmlauncher/Account/Account.dart'; import 'package:rpmlauncher/Screen/Edit.dart'; @@ -86,11 +87,10 @@ class LauncherHome extends StatelessWidget { builder: (context, theme) { ThemeUtility.UpdateTheme(context); return MaterialApp( - debugShowCheckedModeBanner: false, - title: LauncherInfo.getUpperCaseName(), - theme: theme, - home: HomePage(), - ); + debugShowCheckedModeBanner: false, + title: LauncherInfo.getUpperCaseName(), + theme: theme, + home: HomePage()); }); } }