export VELOPACK_FIRSTRUN when running app via macos postinstall script

This commit is contained in:
Josh Unwin
2024-11-05 10:38:01 +00:00
committed by Caelan
parent c8ced4c0fb
commit 1fb1670840

View File

@@ -116,7 +116,7 @@ public class OsxBuildTools
#!/bin/sh
rm -rf /tmp/velopack/{appId}
sudo -u "$USER" rm -rf ~/Library/Caches/velopack/{appId}
sudo -u "$USER" open "$2/{bundleName}/"
export VELOPACK_FIRSTRUN=1 sudo -u "$USER" open "$2/{bundleName}/"
exit 0
""");
Chmod.ChmodFileAsExecutable(postinstall);