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

fix something #15

Merged
merged 7 commits into from
Jan 2, 2024
Merged

fix something #15

merged 7 commits into from
Jan 2, 2024

Conversation

shiftz300
Copy link
Collaborator

No description provided.

@Muska-Ami
Copy link
Owner

Muska-Ami commented Jan 2, 2024

Telegram PM:
你那个逻辑是对的,但是异步还是出了一些问题,会放到解压之前执行(文件不存在所以没办法chmod),所以我改成每次执行frpc的时候chmod了

我原来这部分
应该是没啥问题来着,用了await所以设置文件权限会到unarchive完成才执行

        final unarchive = await FrpcArchive.unarchive(
          platform: platform,
          arch: arch[frpc_download_arch.value]['arch'],
          version: '0.51.3',
        );
        if (unarchive) {
          SettingPrefs.setFrpcDownloadedVersionsInfo('0.51.3');
          FrpcManagerStorage.save(
            FrpcConfig(
                settings: (await SettingPrefs.getFrpcInfo()).settings,
                lists: (await SettingPrefs.getFrpcInfo()).lists),
          );
          if (!Platform.isWindows) {
            print('Not windows platform, change file permission');
            await FrpcManagerStorage.setRunPermission();
          }
          _load_tip();
        } else {

@Muska-Ami Muska-Ami merged commit 27f6336 into Muska-Ami:dev Jan 2, 2024
@shiftz300
Copy link
Collaborator Author

shiftz300 commented Jan 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants