mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add authors and slight refactor to make code cleaner
This commit is contained in:
parent
dcd741afd8
commit
025c503963
2 changed files with 4 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue