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

[feature request] 关于静态资源文件缓存的建议 #46

Closed
BruceZhang1993 opened this issue Mar 7, 2019 · 6 comments
Closed

[feature request] 关于静态资源文件缓存的建议 #46

BruceZhang1993 opened this issue Mar 7, 2019 · 6 comments
Labels
enhancement New feature or request solved-next-release 已完成,预定在下一个 release 版本中发布

Comments

@BruceZhang1993
Copy link

您是在使用中遇到了什么问题导致的您提交功能建议么?如果是,请描述您遇到的问题
运行环境:Arch Linux
尝试打包到 AUR 但运行时会尝试往 应用安装位置/resources/app/static 缓存静态文件,一般打包以后这个位置是不允许在普通用户权限下修改,例如 /opt/majsoul-plus/resources/app/static

描述您希望的解决方案
修改静态文件的缓存位置到用户主目录下的合适位置

@BruceZhang1993 BruceZhang1993 added the enhancement New feature or request label Mar 7, 2019
@iamapig120
Copy link
Member

唔……打包的话……这里如果不打包 asar 的话……应该是可以正常写入的……
具体不是很了解,捂脸
以后会尝试加入选项以手动指定缓存路径

@BruceZhang1993
Copy link
Author

唔……打包的话……这里如果不打包 asar 的话……应该是可以正常写入的……
具体不是很了解,捂脸
以后会尝试加入选项以手动指定缓存路径

因为打包的时候只能把所有的文件安装到系统目录,不能直接安装到用户目录

嘛,所以以用户权限运行的时候就没办法去写入了,所以写到用户有权限管理的路径比较合适啦,加入指定路径的命令行选项也是可行的方案。

@iamapig120
Copy link
Member

唔……打包的话……这里如果不打包 asar 的话……应该是可以正常写入的……
具体不是很了解,捂脸
以后会尝试加入选项以手动指定缓存路径

因为打包的时候只能把所有的文件安装到系统目录,不能直接安装到用户目录

嘛,所以以用户权限运行的时候就没办法去写入了,所以写到用户有权限管理的路径比较合适啦,加入指定路径的命令行选项也是可行的方案。

收到建议,我个人近期有些忙所以可能无法及时实现相关特性,实在不好意思了……(逃

@iamapig120
Copy link
Member

/static
缓存路径将会在未来允许修改至其他路径,将会着手实现

@Yesterday17
Copy link
Member

我先尝试在 typescript 分支下弄一下吧,我现在就在用 manjaro(

Yesterday17 added a commit that referenced this issue Jul 8, 2019
Windows 下为 %appdata%/Majsoul_Plus/static
*nix下为~/.local/Majsoul_Plus/static
@Yesterday17 Yesterday17 added the solved-next-release 已完成,预定在下一个 release 版本中发布 label Jul 13, 2019
@Yesterday17
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request solved-next-release 已完成,预定在下一个 release 版本中发布
Projects
None yet
Development

No branches or pull requests

3 participants