add authors and slight refactor to make code cleaner

This commit is contained in:
Hongtao Zhang 2024-06-16 17:45:39 -05:00
parent dcd741afd8
commit 025c503963
2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
// It is still possible to create the UserData folder for dev version manually but we want to keep the current behavior
if (!Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
.PathContains(Constant.ProgramDirectory)
&& Constant.Version != "1.0.0")
&& !IsDevVersion)
{
Directory.CreateDirectory(PortableDataPath);
}
@ -30,6 +30,8 @@ namespace Flow.Launcher.Infrastructure.UserSettings
public static string RoamingDataPath =
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
public static bool IsDevVersion => Constant.Version == "1.0.0";
public static string DataDirectory()
{
if (PortableDataLocationInUse())

View file

@ -125,7 +125,7 @@ function Pack-Velopack-Installer($path, $version, $output)
# FIXME userdata should not be created in installer version
# New-Item -ItemType Directory -Force -Path "$input\UserData"
vpk pack --packVersion $version --packDir $input --packId FlowLauncher --mainExe Flow.Launcher.exe --channel $channel --outputDir $output --packTitle "Flow Launcher" --icon "$input\Images\app.ico"
vpk pack --packVersion $version --packDir $input --packId FlowLauncher --mainExe Flow.Launcher.exe --channel $channel --outputDir $output --packTitle "Flow Launcher" --icon "$input\Images\app.ico" --packAuthors "Flow-Launcher Team"
}
function Publish-Self-Contained($p)