mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-02-04 03:56:11 -06:00
Show warning if existing AppRun is overwritten
This commit is contained in:
parent
9d25fee1dc
commit
4e33e395de
@ -59,6 +59,13 @@ namespace linuxdeploy {
|
||||
|
||||
if (!customAppRunPath.empty()) {
|
||||
ldLog() << LD_INFO << "Deploying custom AppRun: " << customAppRunPath << std::endl;
|
||||
|
||||
const auto& appRunPathInAppDir = appDir.path() / "AppRun";
|
||||
if (bf::exists(appRunPathInAppDir)) {
|
||||
ldLog() << LD_WARNING << "File exists, replacing with custom AppRun" << std::endl;
|
||||
bf::remove(appRunPathInAppDir);
|
||||
}
|
||||
|
||||
appDir.deployFile(customAppRunPath, appDir.path() / "AppRun");
|
||||
appDir.executeDeferredOperations();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user