Skip to content

Commit 14999f4

Browse files
committed
增加部署脚本
1 parent 6bc8257 commit 14999f4

File tree

7 files changed

+19
-4
lines changed

7 files changed

+19
-4
lines changed

CnBlogPublishTool.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CnBlogPublishTool", "CnBlog
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2A364680-E06B-424C-A860-B191DB766B04}"
99
ProjectSection(SolutionItems) = preProject
10-
publish.bat = publish.bat
10+
shell\deploy.bat = shell\deploy.bat
11+
shell\publish.bat = shell\publish.bat
1112
EndProjectSection
1213
EndProject
1314
Global

CnBlogPublishTool/CnBlogPublishTool.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp2.0</TargetFramework>
6+
<ApplicationIcon>program.ico</ApplicationIcon>
67
</PropertyGroup>
78

89
<ItemGroup>

CnBlogPublishTool/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class Program
2020
private static readonly Dictionary<string,string> ReplaceDic=new Dictionary<string, string>();
2121
static void Main(string[] args)
2222
{
23+
Console.Title = "晓晨-博客快捷上传图片工具";
24+
Console.ForegroundColor = ConsoleColor.Yellow;
25+
Console.WriteLine("\n\n\t\t\t欢迎使用晓晨-博客快捷上传图片工具,使用问题或者建议请联系QQ群4656606\n\n");
2326
//加载配置
2427
LoadConfig();
2528

CnBlogPublishTool/program.ico

66.1 KB
Binary file not shown.

publish.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

shell/deploy.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set sendtopath=C:\Users\%username%\AppData\Roaming\Microsoft\Windows\SendTo
2+
3+
move Publish\CnBlogPublishTool.exe.lnk %sendtopath%\CnBlogPublishTool.lnk
4+
5+
pause

shell/publish.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
echo ×źą¸ˇ˘˛ź
3+
4+
dotnet publish -c Release -r win10-x86 -o ../Publish
5+
6+
echo ˇ˘˛źÍęłÉ
7+
8+
pause

0 commit comments

Comments
 (0)