-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
xpack打包的软件卸载时会删除依赖的动态库原文件而不是安装目录下的文件 #5952
Comments
Title: xpack packaged software deletion script deletes the original file |
没看出哪里有问题,最好给个完整可复现的 example,尽可能简化下。 |
I don't see any problem. It's best to give a complete and reproducible example and simplify it as much as possible. |
最小步骤如下:
1.创建一个项目
main.cpp
3.增加xpack打包
4.通过xmake打包并安装 问题原因排查在生成的nsis打包脚本中注意到
卸载命令中删除依赖文件使用的是依赖的绝对路径。 |
给完整工程。zip包,我没时间挨个去存文件复原。 |
示例工程zip: |
Give complete project. zip package, I don’t have time to save the files one by one and restore them. |
Sample project zip: |
也没见哪里有删源文件,删包文件 倒是有 |
I haven't seen any deletion of source files or deletion of package files, but there are some. |
试下 #5964 |
此前打包的安装包会错误的删除下面这个文件 |
The previously packaged installation package will delete the following file by mistake |
Xmake 版本
2.9.6
操作系统版本和架构
Windows 10 专业工作站版
描述问题
生成的安装脚本中依赖文件命令
SetOutPath "$InstDir\bin" File "/oname=libcrypto-1_1-x64.dll" "C:\Users\user\AppData\Local\.xmake\packages\o\openssl\1.1.1-w\bea2134730964004af26723afb7a610e\bin\libcrypto-1_1-x64.dll"
生成的删除脚本中该依赖文件的命令
${unRMFileIfExists} "C:\Users\user\AppData\Local\.xmake\packages\o\openssl\1.1.1-w\bea2134730964004af26723afb7a610e\bin\libcrypto-1_1-x64.dll"
结论
软件卸载时没有删除软件目录下的该文件,反而将源文件删除了。
期待的结果
正确的删除安装目录下的文件,而不是源文件
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: