Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not out dotenv file not found logs #208

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions RELEASE_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@
- 修复一个错误的启动逻辑
- 优化下载返回

[//]: # (### 其他)
### 其他

#### NyaLCF Env

- 禁止输出未找到 `.env` 文件的日志

## 版本信息

- nyalcf_gui: 0.2.3
- nyalcf_cli: 0.0.3
- nyalcf_env: 1.0.0
- nyalcf_env: 1.0.1
- nyalcf_core,nyalcf_inject: 1.2.2

<!-- Some change log here -->
2 changes: 1 addition & 1 deletion nyalcf_env/lib/src/gui.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package imports:
import 'package:dotenv/dotenv.dart';

final _env = DotEnv(includePlatformEnvironment: true)..load();
final _env = DotEnv(includePlatformEnvironment: true, quiet: true)..load();

bool? ENV_GUI_DISABLE_AUTO_UPDATE_CHECK = bool.tryParse(
_env['NYA_LCF_GUI_DISABLE_AUTO_UPDATE_CHECK'] ?? '',
Expand Down
2 changes: 1 addition & 1 deletion nyalcf_env/lib/src/universal.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package imports:
import 'package:dotenv/dotenv.dart';

final _env = DotEnv(includePlatformEnvironment: true)..load();
final _env = DotEnv(includePlatformEnvironment: true, quiet: true)..load();

String? ENV_UNIVERSAL_FRPC_PATH = _env['NYA_LCF_FRPC_PATH'];
String? ENV_UNIVERSAL_FRPC_DOWNLOAD_MIRROR_URL =
Expand Down
2 changes: 1 addition & 1 deletion nyalcf_env/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nyalcf_env
description: "Nya LoCyanFrp! env module."
version: 1.0.0
version: 1.0.1
homepage: https://nyalcf.1l1.icu
publish_to: 'none'

Expand Down