Skip to content

Commit

Permalink
修正release号和二进制中的版本号不一样的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
pandolia committed Aug 30, 2020
1 parent 96bd991 commit 46fd6ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Binary file modified bin/svc.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

### 安装

下载 [源码及程序v1.0.6](https://github.com/pandolia/easy-service/archive/v1.0.6.zip),解压。右键单击 bin 目录下的 register-this-path.bat ,以管理员身份运行,将 bin 目录加入至系统路径中,也可以手动将此目录加入至系统路径。
下载 [源码及程序](https://github.com/pandolia/easy-service/archive/master.zip),解压。右键单击 bin 目录下的 register-this-path.bat ,以管理员身份运行,将 bin 目录加入至系统路径中,也可以手动将此目录加入至系统路径。

重新打开 “我的电脑” ,在任意位置打开一个命令行窗口,输入 ***svc -v*** ,如果正常输出版本信息,则表明安装成功。

Expand Down
2 changes: 1 addition & 1 deletion src/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class Program
{
private const string VERSION = "Easy Service: v1.0.5";
private const string VERSION = "Easy Service: v1.0.7";

private const string USAGE =
"Usage:\r\n" +
Expand Down
5 changes: 0 additions & 5 deletions src/SvcUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public static void InstallService(Conf conf)
{
Libs.Abort($"Failed to install Service \"{conf.ServiceName}\"");
}

if (conf.LastLineFile != null)
{
Libs.WriteLineToFile(conf.LastLineFile, "", false);
}

var msg = $"Installed Service \"{conf.ServiceName}\"";
Console.WriteLine(msg);
Expand Down
5 changes: 5 additions & 0 deletions src/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public Worker(Action<string, string> logAdder = null, bool popup = false)

public void Start()
{
if (Proc == null && Conf.LastLineFile != null)
{
Libs.WriteLineToFile(Conf.LastLineFile, "", false);
}

Proc = new Process
{
StartInfo = Psi
Expand Down

0 comments on commit 46fd6ef

Please sign in to comment.