From 46fd6ef3d5d430b10725dd273cc7721feb2a1423 Mon Sep 17 00:00:00 2001 From: Pandolia Date: Sun, 30 Aug 2020 22:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3release=E5=8F=B7=E5=92=8C?= =?UTF-8?q?=E4=BA=8C=E8=BF=9B=E5=88=B6=E4=B8=AD=E7=9A=84=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E4=B8=8D=E4=B8=80=E6=A0=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/svc.exe | Bin 37376 -> 37376 bytes readme.md | 2 +- src/Main.cs | 2 +- src/SvcUtils.cs | 5 ----- src/Worker.cs | 5 +++++ 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/svc.exe b/bin/svc.exe index cd4ca6b50cef1bc332343d1db58f63be451cd736..25be1e4deea44f3848d5a2d295694dd8672a8d8f 100644 GIT binary patch delta 889 zcmY+@TSyd97zgnG8E0Ibv#ztdA%XjQVc3nao+=7_=*6cl57Em;4-rBkK2=6%X3j$n%nZNt|IYb77$!U;glB~D zA+f#X^RznZAwBABJ;~Mx$&r%o10HR&;MIZV6l08}qz`f+)uE zH{qDoC%grY(9c4{laP`U=o$EnENzo0ZN+=8lT2+09;up0%^sj&%na-q*DDJrd?a80)Fvy+%M;HtBF}D> z-krMhdtdUakNQe*SrYRRo!3{J=M(hXv4D_L&HoT%pwrrh;SAEC?HzujJ4SvF|90&048+UY@x2`+8Vuni=1)46bQJRGLr`EMUTCx}+MaUN9zjE8OGRoa; zaZ|C{aYXFaLF^A!J5SLC!iM%ljc=erPHj^Et{+2{Kj;Rl4UTmyAc- z-K0S3D+028s`ZY_5+Vhq4f@mKCS$F*nc95>*afIYU%8Jc#KlKN;2bh$eFvQ}doA}A zWP29vLZ?ufOlc2Rh0ZheVzSPv3^84Xx870@(-oAN(vU4t+J`!!e}vKq+Jssif0e7K zZm|05X-0`69y6&S?C3@mb0U11>!#Q6U1aW@ZL}Yyhk2uhQ}k=r06v(SLPuUk8Niar z`tx>BrX$vhTk;;J$$+I*Wf0e~ztNJCGp= zji4#5aNU_vh7dB9DqM9|(IIq-%2&2p8pj)<)1Dx`i`gbVB?XT}ki<7jtgn?O(RvJg ze+qsN!7!$e^U?%fdXbQqCltFp-*rYWom4SKri2x?k*rh#}I z(iqxJC9vUeVH~|e8qJT5%MoX`qW8tIdKDF0rbpT<`W>sQ6hs8l3vFw0mv-$792OXI-{c yBDr9wT?<*pd@3sCR*Rp3Unr#S9W5dOy=8P!uP6D2bL@{ST|8i@>EA@F$oUV=2)Ks; diff --git a/readme.md b/readme.md index 8c48322..6d54b53 100644 --- a/readme.md +++ b/readme.md @@ -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*** ,如果正常输出版本信息,则表明安装成功。 diff --git a/src/Main.cs b/src/Main.cs index c307c92..85e4ba9 100644 --- a/src/Main.cs +++ b/src/Main.cs @@ -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" + diff --git a/src/SvcUtils.cs b/src/SvcUtils.cs index e35f9ee..fc43605 100644 --- a/src/SvcUtils.cs +++ b/src/SvcUtils.cs @@ -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); diff --git a/src/Worker.cs b/src/Worker.cs index e90e649..15a2d00 100644 --- a/src/Worker.cs +++ b/src/Worker.cs @@ -55,6 +55,11 @@ public Worker(Action logAdder = null, bool popup = false) public void Start() { + if (Proc == null && Conf.LastLineFile != null) + { + Libs.WriteLineToFile(Conf.LastLineFile, "", false); + } + Proc = new Process { StartInfo = Psi