diff --git a/Flow.Launcher.Core/Configuration/Portable.cs b/Flow.Launcher.Core/Configuration/Portable.cs index 421754c1e..d08c9ae2c 100644 --- a/Flow.Launcher.Core/Configuration/Portable.cs +++ b/Flow.Launcher.Core/Configuration/Portable.cs @@ -8,6 +8,7 @@ using Flow.Launcher.Infrastructure; using Flow.Launcher.Infrastructure.Logger; using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Plugin.SharedCommands; +using System.Linq; namespace Flow.Launcher.Core.Configuration { @@ -19,7 +20,11 @@ namespace Flow.Launcher.Core.Configuration /// private UpdateManager NewUpdateManager() { - return new UpdateManager(string.Empty, Constant.FlowLauncher, Constant.RootDirectory); + var applicationFolderName = Constant.ApplicationDirectory + .Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None) + .Last(); + + return new UpdateManager(string.Empty, applicationFolderName, Constant.RootDirectory); } public void DisablePortableMode() @@ -148,7 +153,7 @@ namespace Flow.Launcher.Core.Configuration { // Specify here so this method does not rely on other environment variables to initialise var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData"); - var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Flow.Launcher"); + var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher"); bool DataLocationPortableDeleteRequired = false; bool DataLocationRoamingDeleteRequired = false; diff --git a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs index f6837bda2..310c1e33a 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs @@ -12,7 +12,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings public const string PortableFolderName = "UserData"; public const string DeletionIndicatorFile = ".dead"; public static string PortableDataPath = Path.Combine(Constant.ProgramDirectory, PortableFolderName); - public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Constant.FlowLauncher); + public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher"); public static string DataDirectory() { if (PortableDataLocationInUse()) diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index fc9c44201..be87e4f52 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -387,7 +387,7 @@ - + diff --git a/JsonRPC/wox.py b/JsonRPC/wox.py index 4f5fb939b..1beaa1d7e 100644 --- a/JsonRPC/wox.py +++ b/JsonRPC/wox.py @@ -4,7 +4,7 @@ import json import sys import inspect -class Flow.Launcher(object): +class FlowLauncher(object): """ Flow.Launcher python plugin base """ @@ -42,7 +42,7 @@ class Flow.Launcher(object): print("DEBUG:{}".format(msg)) sys.exit() -class Flow.LauncherAPI(object): +class FlowLauncherAPI(object): @classmethod def change_query(cls,query,requery = False): diff --git a/Plugins/HelloWorldPython/main.py b/Plugins/HelloWorldPython/main.py index 7855966c0..6fa1b86ee 100644 --- a/Plugins/HelloWorldPython/main.py +++ b/Plugins/HelloWorldPython/main.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -from flowlauncher import Flow.Launcher +from flow.launcher import Flow.Launcher -class HelloWorld(Flow.Launcher): +class HelloWorld(FlowLauncher): def query(self, query): results = [] diff --git a/Plugins/HelloWorldPython/plugin.json b/Plugins/HelloWorldPython/plugin.json index 459868b8e..6aa2fee56 100644 --- a/Plugins/HelloWorldPython/plugin.json +++ b/Plugins/HelloWorldPython/plugin.json @@ -6,7 +6,7 @@ "Author":"happlebao", "Version":"1.0", "Language":"python", - "Website":"https://github.com/wox-launcher/wox", + "Website":"https://github.com/Flow-Launcher/Flow.Launcher", "IcoPath":"Images\\app.png", "ExecuteFileName":"main.py" } diff --git a/Scripts/wox.nuspec b/Scripts/flowlauncher.nuspec similarity index 95% rename from Scripts/wox.nuspec rename to Scripts/flowlauncher.nuspec index 530aabf3f..cfac20b06 100644 --- a/Scripts/wox.nuspec +++ b/Scripts/flowlauncher.nuspec @@ -1,7 +1,7 @@ - Flow.Launcher-JJW24 + FlowLauncher Flow Launcher $version$ happlebao, Jeremy Wu diff --git a/Scripts/wox.plugin.nuspec b/Scripts/flowlauncher.plugin.nuspec similarity index 100% rename from Scripts/wox.plugin.nuspec rename to Scripts/flowlauncher.plugin.nuspec diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index f9889df04..14faf82b1 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -74,7 +74,7 @@ function Zip-Release ($path, $version, $output) { $input = "$path\Output\Release" Write-Host "Input path: $input" - $file = "$output\Flow.Launcher-JJW24-$version.zip" + $file = "$output\Flow.Launcher-$version.zip" Write-Host "Filename: $file" [Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") @@ -93,7 +93,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) { Write-Host "Input path: $input" Nuget pack $spec -Version $version -Properties Configuration=Release -BasePath $input -OutputDirectory $output - $nupkg = "$output\Flow.Launcher-JJW24.$version.nupkg" + $nupkg = "$output\FlowLauncher.$version.nupkg" Write-Host "nupkg path: $nupkg" $icon = "$path\Flow.Launcher\Resources\app.ico" Write-Host "icon: $icon" @@ -107,7 +107,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) { Move-Item $temp\* $output -Force Remove-Item $temp - $file = "$output\Flow.Launcher-JJW24-$version.exe" + $file = "$output\Flow Launcher-$version.exe" Write-Host "Filename: $file" Move-Item "$output\Setup.exe" $file -Force diff --git a/SolutionAssemblyInfo.cs b/SolutionAssemblyInfo.cs index 297f69cf6..1482bce9e 100644 --- a/SolutionAssemblyInfo.cs +++ b/SolutionAssemblyInfo.cs @@ -16,6 +16,6 @@ using System.Runtime.InteropServices; [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] -[assembly: AssemblyVersion("2.0.0")] -[assembly: AssemblyFileVersion("2.0.0")] -[assembly: AssemblyInformationalVersion("2.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.0")] +[assembly: AssemblyFileVersion("1.0.0")] +[assembly: AssemblyInformationalVersion("1.0.0")] \ No newline at end of file