From eae747544e81d1facdf7d18f3cc6f9d06ba8c782 Mon Sep 17 00:00:00 2001 From: shiki-tak Date: Thu, 18 Jul 2024 19:26:37 +0900 Subject: [PATCH] fix --- .github/workflows/deploy.yml | 3 ++- flutter_bird_app/lib/main.dart | 2 +- flutter_bird_app/pubspec.yaml | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 765546c..89464fa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,7 +39,8 @@ jobs: working-directory: flutter_bird_app run: | flutter build web - cp .env build/web/ + mkdir -p build/web/assets + cp .env build/web/assets/ - name: Set GitHub Deployment Environment id: github_deployment_environment diff --git a/flutter_bird_app/lib/main.dart b/flutter_bird_app/lib/main.dart index 0417545..9f8ab7f 100644 --- a/flutter_bird_app/lib/main.dart +++ b/flutter_bird_app/lib/main.dart @@ -8,7 +8,7 @@ import 'package:flutter_line_liff/flutter_line_liff.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); - await dotenv.load(fileName: ".env"); + await dotenv.load(fileName: "assets/.env"); print("Starting application..."); final bool isInClient = FlutterLineLiff().isInClient; diff --git a/flutter_bird_app/pubspec.yaml b/flutter_bird_app/pubspec.yaml index 9a75847..1c5a040 100644 --- a/flutter_bird_app/pubspec.yaml +++ b/flutter_bird_app/pubspec.yaml @@ -47,7 +47,6 @@ flutter: assets: - images/ - assets/ - - .env fonts: - family: flappy fonts: