Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个将.clr文件安装到用户library/color文件夹中的包。问题在于以下路径:
.clr
library/color
~/Library/Colors/
导致在他们的 Mac 上使用我的计算机名称和 clr 创建一个新文件夹。里面的文件。
如果我使用
./Library/Colors/
然后它只是将它存储在 Macintosh HD 文件夹中的 Main Library 文件夹中。或者,如果我希望它出现在 Mac 上的所有用户面前,这是否是正确的文件夹?
我究竟做错了什么?谢谢!
如果~/Library/Colors/在不同系统上运行包时导致您的计算机名称,这意味着'~'在您创建包时已解决。作为替代方案,您可以尝试
'~'
/Users/\$USER/Library/Colors/