Skip to content

Commit bc06c8d

Browse files
committed
Merge branch 'master' into fix_settings_openurl
2 parents 7277373 + 0f298ec commit bc06c8d

File tree

10 files changed

+21
-16
lines changed

10 files changed

+21
-16
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Flow.Launcher.Infrastructure.Logger;
99
using Flow.Launcher.Infrastructure.UserSettings;
1010
using Flow.Launcher.Plugin.SharedCommands;
11+
using System.Linq;
1112

1213
namespace Flow.Launcher.Core.Configuration
1314
{
@@ -19,7 +20,11 @@ public class Portable : IPortable
1920
/// <returns></returns>
2021
private UpdateManager NewUpdateManager()
2122
{
22-
return new UpdateManager(string.Empty, Constant.FlowLauncher, Constant.RootDirectory);
23+
var applicationFolderName = Constant.ApplicationDirectory
24+
.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)
25+
.Last();
26+
27+
return new UpdateManager(string.Empty, applicationFolderName, Constant.RootDirectory);
2328
}
2429

2530
public void DisablePortableMode()
@@ -148,7 +153,7 @@ public void PreStartCleanUpAfterPortabilityUpdate()
148153
{
149154
// Specify here so this method does not rely on other environment variables to initialise
150155
var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
151-
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Flow.Launcher");
156+
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
152157

153158
bool DataLocationPortableDeleteRequired = false;
154159
bool DataLocationRoamingDeleteRequired = false;

Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class DataLocation
1212
public const string PortableFolderName = "UserData";
1313
public const string DeletionIndicatorFile = ".dead";
1414
public static string PortableDataPath = Path.Combine(Constant.ProgramDirectory, PortableFolderName);
15-
public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Constant.FlowLauncher);
15+
public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
1616
public static string DataDirectory()
1717
{
1818
if (PortableDataLocationInUse())

Flow.Launcher/SettingWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
<Run Text="{Binding Github, Mode=OneWay}" />
388388
</Hyperlink>
389389
</TextBlock>
390-
<TextBlock Grid.Row="2" Grid.Column="0" Text="JJW24 Version" />
390+
<TextBlock Grid.Row="2" Grid.Column="0" Text="Version" />
391391
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Version}" />
392392
<TextBlock Grid.Row="3" Grid.Column="0" Text="{DynamicResource releaseNotes}" />
393393
<TextBlock Grid.Row="3" Grid.Column="1">

JsonRPC/wox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import inspect
66

7-
class Flow.Launcher(object):
7+
class FlowLauncher(object):
88
"""
99
Flow.Launcher python plugin base
1010
"""
@@ -42,7 +42,7 @@ def debug(self,msg):
4242
print("DEBUG:{}".format(msg))
4343
sys.exit()
4444

45-
class Flow.LauncherAPI(object):
45+
class FlowLauncherAPI(object):
4646

4747
@classmethod
4848
def change_query(cls,query,requery = False):

Plugins/HelloWorldPython/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22

3-
from flowlauncher import Flow.Launcher
3+
from flow.launcher import Flow.Launcher
44

5-
class HelloWorld(Flow.Launcher):
5+
class HelloWorld(FlowLauncher):
66

77
def query(self, query):
88
results = []

Plugins/HelloWorldPython/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Author":"happlebao",
77
"Version":"1.0",
88
"Language":"python",
9-
"Website":"https://github.com/wox-launcher/wox",
9+
"Website":"https://github.com/Flow-Launcher/Flow.Launcher",
1010
"IcoPath":"Images\\app.png",
1111
"ExecuteFileName":"main.py"
1212
}

Scripts/wox.nuspec renamed to Scripts/flowlauncher.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
33
<metadata>
4-
<id>Flow.Launcher-JJW24</id>
4+
<id>FlowLauncher</id>
55
<title>Flow Launcher</title>
66
<version>$version$</version>
77
<authors>happlebao, Jeremy Wu</authors>
File renamed without changes.

Scripts/post_build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Zip-Release ($path, $version, $output) {
7474

7575
$input = "$path\Output\Release"
7676
Write-Host "Input path: $input"
77-
$file = "$output\Flow.Launcher-JJW24-$version.zip"
77+
$file = "$output\Flow.Launcher-$version.zip"
7878
Write-Host "Filename: $file"
7979

8080
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem")
@@ -93,7 +93,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
9393
Write-Host "Input path: $input"
9494
Nuget pack $spec -Version $version -Properties Configuration=Release -BasePath $input -OutputDirectory $output
9595

96-
$nupkg = "$output\Flow.Launcher-JJW24.$version.nupkg"
96+
$nupkg = "$output\FlowLauncher.$version.nupkg"
9797
Write-Host "nupkg path: $nupkg"
9898
$icon = "$path\Flow.Launcher\Resources\app.ico"
9999
Write-Host "icon: $icon"
@@ -107,7 +107,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
107107
Move-Item $temp\* $output -Force
108108
Remove-Item $temp
109109

110-
$file = "$output\Flow.Launcher-JJW24-$version.exe"
110+
$file = "$output\Flow Launcher-$version.exe"
111111
Write-Host "Filename: $file"
112112

113113
Move-Item "$output\Setup.exe" $file -Force

SolutionAssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
[assembly: AssemblyTrademark("")]
1717
[assembly: AssemblyCulture("")]
1818
[assembly: ComVisible(false)]
19-
[assembly: AssemblyVersion("2.0.0")]
20-
[assembly: AssemblyFileVersion("2.0.0")]
21-
[assembly: AssemblyInformationalVersion("2.0.0")]
19+
[assembly: AssemblyVersion("1.0.0")]
20+
[assembly: AssemblyFileVersion("1.0.0")]
21+
[assembly: AssemblyInformationalVersion("1.0.0")]

0 commit comments

Comments
 (0)