Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit b2daa09

Browse files
Kaim, Sean MKaim, Sean M
authored andcommitted
Update build command to package portable version
Update build command to package portable version
1 parent e59e4ac commit b2daa09

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

build-relport.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
22
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" "D:\Source\mRemoteNG\mRemoteV1.sln" /Rebuild "Release Portable"
3+
4+
rmdir /S /Q D:\Source\mRemoteNG\mRemoteV1\bin\package
5+
mkdir D:\Source\mRemoteNG\mRemoteV1\bin\package
6+
copy D:\Source\mRemoteNG\*.txt D:\Source\mRemoteNG\mRemoteV1\bin\package
7+
xcopy /S /Y "D:\Source\mRemoteNG\mRemoteV1\bin\Release Portable" D:\Source\mRemoteNG\mRemoteV1\bin\package
8+
9+
for /f "delims=" %%i in ('findstr /R /C:"^<Assembly: AssemblyVersion" "mRemoteV1\My Project\AssemblyInfo.vb"') do set output="%%i"
10+
11+
"C:\Program Files\7-Zip\7z.exe" a -r -tzip -y D:\Source\mRemoteNG\mRemoteV1\bin\mRmoteNG-%output:~-10,-6%.zip D:\Source\mRemoteNG\mRemoteV1\bin\package\*.*

0 commit comments

Comments
 (0)