From 4d5035b9e5ba76bcb1f507b340032db3acf3bb05 Mon Sep 17 00:00:00 2001 From: panjia Date: Thu, 3 Nov 2022 14:49:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 100标准/.gitignore | 112 +++++++++++++++++++++ 100标准/1.documents/文档.txt | 0 100标准/2.database/数据库及脚本.txt | 0 100标准/3.tools/工具箱.txt | 0 100标准/4.resources/资源文件.txt | 0 100标准/5.code/源代码.txt | 0 100标准/6.hardware/硬件资料.txt | 0 100标准/7.devops/运维说明.txt | 0 100标准/8.version/.gitignore | 2 + 100标准/8.version/2.0.7.panda | 1 + 100标准/8.version/history/建立版本.old.bat | 49 +++++++++ 100标准/8.version/version.txt | 1 + 100标准/8.version/建立版本.bat | 58 +++++++++++ 100标准/8.version/每次编译.bat | 20 ++++ 100标准/9.published/建立D盘目录.bat | 51 ++++++++++ 100标准/IDE.panda.bat | 34 +++++++ 100标准/LICENSE | 6 ++ 100标准/README.md | 3 + 100标准/Tool.Clear.bat | 15 +++ 100标准/xxxxxxx.master.txt | 0 20 files changed, 352 insertions(+) create mode 100644 100标准/.gitignore create mode 100644 100标准/1.documents/文档.txt create mode 100644 100标准/2.database/数据库及脚本.txt create mode 100644 100标准/3.tools/工具箱.txt create mode 100644 100标准/4.resources/资源文件.txt create mode 100644 100标准/5.code/源代码.txt create mode 100644 100标准/6.hardware/硬件资料.txt create mode 100644 100标准/7.devops/运维说明.txt create mode 100644 100标准/8.version/.gitignore create mode 100644 100标准/8.version/2.0.7.panda create mode 100644 100标准/8.version/history/建立版本.old.bat create mode 100644 100标准/8.version/version.txt create mode 100644 100标准/8.version/建立版本.bat create mode 100644 100标准/8.version/每次编译.bat create mode 100644 100标准/9.published/建立D盘目录.bat create mode 100644 100标准/IDE.panda.bat create mode 100644 100标准/LICENSE create mode 100644 100标准/README.md create mode 100644 100标准/Tool.Clear.bat create mode 100644 100标准/xxxxxxx.master.txt diff --git a/100标准/.gitignore b/100标准/.gitignore new file mode 100644 index 0000000..5b385f4 --- /dev/null +++ b/100标准/.gitignore @@ -0,0 +1,112 @@ +# ---> C Sharp +# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) +[Bb]in/ +[Oo]bj/ + +# mstest test results +TestResults + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Rr]elease/ +x64/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.log +*.vspscc +*.vssscc +.builds + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper* + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Publish Web Output +*.Publish.xml + +# NuGet Packages Directory +packages + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +[Bb]in +[Oo]bj +sql +TestResults +[Tt]est[Rr]esult* +*.Cache +ClientBin +[Ss]tyle[Cc]op.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + +9.published/* + diff --git a/100标准/1.documents/文档.txt b/100标准/1.documents/文档.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/2.database/数据库及脚本.txt b/100标准/2.database/数据库及脚本.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/3.tools/工具箱.txt b/100标准/3.tools/工具箱.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/4.resources/资源文件.txt b/100标准/4.resources/资源文件.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/5.code/源代码.txt b/100标准/5.code/源代码.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/6.hardware/硬件资料.txt b/100标准/6.hardware/硬件资料.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/7.devops/运维说明.txt b/100标准/7.devops/运维说明.txt new file mode 100644 index 0000000..e69de29 diff --git a/100标准/8.version/.gitignore b/100标准/8.version/.gitignore new file mode 100644 index 0000000..f6df554 --- /dev/null +++ b/100标准/8.version/.gitignore @@ -0,0 +1,2 @@ +VersionInfo.cs +versiontemp.txt diff --git a/100标准/8.version/2.0.7.panda b/100标准/8.version/2.0.7.panda new file mode 100644 index 0000000..9c558e3 --- /dev/null +++ b/100标准/8.version/2.0.7.panda @@ -0,0 +1 @@ +. diff --git a/100标准/8.version/history/建立版本.old.bat b/100标准/8.version/history/建立版本.old.bat new file mode 100644 index 0000000..9de5f78 --- /dev/null +++ b/100标准/8.version/history/建立版本.old.bat @@ -0,0 +1,49 @@ +@echo off +cd /d %~dp0 +::ȡ汾ļ +set configVersion=version.txt +for /f "tokens=1,2,3 delims=." %%a IN (%configVersion%) Do ( + set tag1=%%a + set tag2=%%b + set tag3=%%c +) +set oldVersion=%tag1%.%tag2%.%tag3% +echo v%oldVersion% + +::ύݣΪڵ +cd /d %rootPath% +set tagName=%oldVersion%_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% +git tag -a %tagName% -m ڵ +git push origin %tagName% + +pause + +::лĿ¼ +cd .. +set rootPath=%cd% + +::ݿű +set oldversionDB=%rootPath%\2.database\v%oldVersion% +if not exist %oldversionDB% ( + md %oldversionDB% +) + +copy /y %rootPath%\2.database\ݿű.txt %oldversionDB%\ +copy /y %rootPath%\2.database\v*.txt %oldversionDB%\ +del /q %rootPath%\2.database\v*.txt + +::д汾 +::set /a tag3=%tag3%+1 +echo oldVersion = v%tag1%.%tag2%.%tag3% +set newVersion=%tag1%.%tag2%.%tag3% + +echo %tag1%.%tag2%.%tag3%>%configVersion% +echo newVersion = v%newVersion% + +del /q %rootPath%\v*.txt +type nul>v%newVersion%.txt +type nul>%rootPath%\2.database\v%newVersion%.txt +type nul>%rootPath%\2.database\ݿű.txt + + +pause \ No newline at end of file diff --git a/100标准/8.version/version.txt b/100标准/8.version/version.txt new file mode 100644 index 0000000..71e4c71 --- /dev/null +++ b/100标准/8.version/version.txt @@ -0,0 +1 @@ +2.0.7.221102161445 diff --git a/100标准/8.version/建立版本.bat b/100标准/8.version/建立版本.bat new file mode 100644 index 0000000..365ad43 --- /dev/null +++ b/100标准/8.version/建立版本.bat @@ -0,0 +1,58 @@ +@echo off +setlocal EnableDelayedExpansion +cd /d %~dp0 + +net.exe session 1>NUL 2>NUL && ( + goto as_admin +) || ( + goto not_admin +) + +:as_admin +::ȡ汾ļ +set configVersion=version.txt +for /f "tokens=1,2,3 delims=." %%a IN (%configVersion%) Do ( + set tag1=%%a + set tag2=%%b + set tag3=%%c +) +set /a tag3=1+%tag3% +set oldVersion=%tag1%.%tag2%.%tag3% + +::滻 +set d=%date: =0% +set t=%time: =0% + +set productname=%oldVersion%.%d:~2,2%%d:~5,2%%d:~8,2%%t:~0,2%%t:~3,2%%t:~6,2% +echo %productname% +echo %productname%> version.txt +del /q *.panda +echo .>%oldVersion%.panda + +cd .. +del /q *.panda +echo .>%oldVersion%.panda + +cd 2.database +del /q *.panda +echo >v%oldVersion%.panda + +if not exist v%oldVersion% md v%oldVersion% +cd v%oldVersion% +if not exist űļ.txt echo -- ݿű(%productname%)>űļ.txt +set jb=%cd%\űļ.txt + +cd .. +echo pp=%jb% +del /q űļ.txt +mklink ½ű.txt %jb% +echo ִгɹ v%oldVersion% +goto end + +:not_admin +echo not as admin + +:end +ping 127.0.0.1 -n 3 >nul +exit + diff --git a/100标准/8.version/每次编译.bat b/100标准/8.version/每次编译.bat new file mode 100644 index 0000000..6c02ad6 --- /dev/null +++ b/100标准/8.version/每次编译.bat @@ -0,0 +1,20 @@ +@echo off +cd /d %~dp0 +::ȡ汾ļ +set configVersion=version.txt +for /f "tokens=1,2,3 delims=." %%a IN (%configVersion%) Do ( + set tag1=%%a + set tag2=%%b + set tag3=%%c +) +set oldVersion=%tag1%.%tag2%.%tag3% + +::滻 +set d=%date: =0% +set t=%time: =0% + +set productname=%oldVersion%.%d:~2,2%%d:~5,2%%d:~8,2%%t:~0,2%%t:~3,2%%t:~6,2% +echo %productname% +echo [assembly:System.Reflection.AssemblyFileVersion("%productname%")]> VersionInfo.cs +echo %productname%> versiontemp.txt + diff --git a/100标准/9.published/建立D盘目录.bat b/100标准/9.published/建立D盘目录.bat new file mode 100644 index 0000000..f330384 --- /dev/null +++ b/100标准/9.published/建立D盘目录.bat @@ -0,0 +1,51 @@ +@ECHO OFF +setlocal EnableDelayedExpansion +cd /d %~dp0 +::当前目录 +set rootPath=%cd% +cd .. +::数据库目录 +set dataPath=%cd%\2.database +echo %dataPath% + +::::::::::::::::: +set publishedPath=D:\SATLIC.CLOUD.TEST +::::::::::::::::: + +::权限检查 +net.exe session 1>NUL 2>NUL && ( + goto as_admin +) || ( + goto not_admin +) + + + +:as_admin +if not exist %publishedPath% md %publishedPath% + +::切换目录 +cd /d %publishedPath% + +::建立数据库 +set dname=database +set dfile2=%publishedPath%\%dname% +if not exist %dfile2% mklink /d %dname% %dataPath% + +::程序:1 +set dname=程序1名称 +set dfile2=%publishedPath%\%dname% +if exist %rootPath%\%dname% ( + echo %rootPath%\%dname% + if not exist %dfile2% mklink /d %dname% %rootPath%\%dname% +) + +echo success ... +goto end + +:not_admin +echo not as admin + +:end +ping 127.0.0.1 -n 3 >nul +exit \ No newline at end of file diff --git a/100标准/IDE.panda.bat b/100标准/IDE.panda.bat new file mode 100644 index 0000000..46429dd --- /dev/null +++ b/100标准/IDE.panda.bat @@ -0,0 +1,34 @@ +@echo off +cd /d %~dp0 +::ʼĿ +set vs="C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE" +set sln=%cd%\5.code\xxxx.sln + +::汾 +set versionfile=%cd%\8.version\VersionInfo.cs +if not exist %versionfile% echo [assembly:System.Reflection.AssemblyFileVersion("1.0.0.0")]>%versionfile% + +if exist %sln% ( + goto OpenSln +) else ( + goto Tip +) + +:OpenSln +if exist %vs% ( + cd /d %vs% + devenv %sln% && exit + goto exit +) else ( + start %sln% + goto exit +) + + +:Tip +ECHO δҵĿ,ϵԱ(panjia@ulee.work) +pause + +:exit +exit + diff --git a/100标准/LICENSE b/100标准/LICENSE new file mode 100644 index 0000000..a4bac65 --- /dev/null +++ b/100标准/LICENSE @@ -0,0 +1,6 @@ +ISC License: +Copyright (c) Year(s), Company or Person's Name + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/100标准/README.md b/100标准/README.md new file mode 100644 index 0000000..66fd9a0 --- /dev/null +++ b/100标准/README.md @@ -0,0 +1,3 @@ +# panjia.cloud + +家庭云平台 \ No newline at end of file diff --git a/100标准/Tool.Clear.bat b/100标准/Tool.Clear.bat new file mode 100644 index 0000000..7f0f36c --- /dev/null +++ b/100标准/Tool.Clear.bat @@ -0,0 +1,15 @@ +@echo off +echo %cd%\5.code +pause +set nowPath=%cd%\5.code +cd /d %nowPath% + +pause +::delete specify file(*.pdb,*.vshost.*) +for /r %nowPath% %%i in (*.pdb,*.vshost.*) do (del %%i) + +::delete specify folder(obj,bin) +for /r %nowPath% %%i in (obj,bin,packages) do (IF EXIST %%i RD /s /q %%i) + +echo OK +pause \ No newline at end of file diff --git a/100标准/xxxxxxx.master.txt b/100标准/xxxxxxx.master.txt new file mode 100644 index 0000000..e69de29