Skip to content

Commit

Permalink
Fix windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
chen08209 committed Jul 18, 2024
1 parent ca946c1 commit ec2890c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.platform }}-${{ matrix.arch && format('--arch {0}', matrix.arch) }}
name: artifact-${{ matrix.platform }}${{ matrix.arch && format('-{0}', matrix.arch) }}
path: ./dist
retention-days: 1
overwrite: true
Expand Down
16 changes: 9 additions & 7 deletions lib/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ class GlobalState {
}) async {
appState.isInit = clashCore.isInit;
if (!appState.isInit) {
clashCore.setProps(
Props(
accessControl: config.isAccessControl ? config.accessControl : null,
allowBypass: config.allowBypass,
systemProxy: config.systemProxy,
),
);
if(Platform.isAndroid){
clashCore.setProps(
Props(
accessControl: config.isAccessControl ? config.accessControl : null,
allowBypass: config.allowBypass,
systemProxy: config.systemProxy,
),
);
}
appState.isInit = await clashService.init(
config: config,
clashConfig: clashConfig,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fl_clash
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
publish_to: 'none'
version: 0.8.42+202407181
version: 0.8.43+202407182
environment:
sdk: '>=3.1.0 <4.0.0'

Expand Down

0 comments on commit ec2890c

Please sign in to comment.