-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Enhancement] 支持MacOS平台 #7
Comments
同期待mac版 |
你好,由于我没有mac设备,所以对macOS的开发调试较为困难,但是代码基本是兼容的 |
同求macOS版本 |
写好之后我愿意尝试为其添加Homebrew安装支持 |
大佬,有打包的教程吗,我想在我的M1上打包个DMG安装包 |
你试试把 // other code (Line 58)
if (Platform.isWindows) {
process = await Process.start(
'$workingDirectory\\alist.exe',
alistArgs,
workingDirectory: workingDirectory,
environment: envVars,
);
} else {
process = await Process.start(
'$workingDirectory/alist',
alistArgs,
workingDirectory: workingDirectory,
environment: envVars,
);
}
// other code 看看能否启动 |
|
似乎是权限问题,考虑到文档:
试试授予Alist Helper完全磁盘访问权限 if (Platform.isWindows) {
process = await Process.start(
'$workingDirectory\\alist.exe',
alistArgs,
workingDirectory: workingDirectory,
environment: envVars,
);
} else {
if (Platform.isMacOS || Platform.isLinux) {
var stat = await File('$workingDirectory/alist').stat();
bool canExecute = (stat.mode & 0x100) != 0;
if (!canExecute) {
addOutput('Please run: chmod +x alist');
}
}
process = await Process.start(
'$workingDirectory/alist',
alistArgs,
workingDirectory: workingDirectory,
environment: envVars,
);
} 也有可能是沙盒问题 tekartik/process_run.dart#3 |
这个应该不对,导致这个的原因应该是Macintosh HD的空格被系统判定分开了 |
可以了,关闭沙盒就行了,谢谢大佬,我再看看有没有其他问题,还有就是怎么打包成 dmg和app呀,我没打包过flutter |
flutter build macos |
已经开始期待了 😁 |
打包成APP测试了几遍,自启动软件和自启动alist都没什么问题,管理员信息、版本信息和检查更新点击会闪退,同时没有最小化菜单栏的功能,关闭alisthelper就直接关闭了(不影响alist),所以某种意义上来说也无所谓。 |
闪退应该是没改,我一会修一下;系统托盘的问题可以详细描述一下吗 |
disable `quit on close`, disable sandbox mode, fix alist_provider bug, add `hidden at launch` to macos and linux #7
我推送了一些新代码,其中包含:
请帮我测试一下是否有问题 @aLIEz-xue |
测试了,这几个功能都没有问题,非常nice,管理员信息、版本信息和检查更新等功能也都没问题了,大佬牛呀 |
现在点关闭还会完全退出吗;托盘还是用不了吗 |
|
也就是说目前没有影响到macOS使用的bug了,那我稍后推一下新版本 |
v0.1.0 已发布,暂时关闭此issue。 |
你好,
非常感谢你开发了AlistHelper,为我们不懂技术语言且没有私人服务器的人提供了巨大的便利。
希望可以开发Mac端,我就可以设置为自启动了。
再次感谢!
Ethan
The text was updated successfully, but these errors were encountered: