Skip to content

Commit

Permalink
Add Build Script
Browse files Browse the repository at this point in the history
  • Loading branch information
delphilite committed Jan 1, 2021
1 parent 94b26e7 commit 80e99f3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
31 changes: 29 additions & 2 deletions Bin/Build/Build.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
call "%ProgramFiles(x86)%\Embarcadero\RAD Studio\9.0\bin\rsvars.bat"

del ..\Win32\AriaNg.exe
msbuild ..\..\Source\AriaNg.dproj /target:Build /p:config=Release /p:platform=Win32 /nologo
IF NOT EXIST ..\Win32\AriaNg.exe goto Error1

del ..\Win64\AriaNg.exe
msbuild ..\..\Source\AriaNg.dproj /target:Build /p:config=Release /p:platform=Win64 /nologo
IF NOT EXIST ..\Win64\AriaNg.exe goto Error1

del /q AriaNgWke-Win32.7z
7za a AriaNgWke-Win32.7z ..\Win32\AriaNg.exe ..\Win32\Wke.dll
IF NOT EXIST AriaNgWke-Win32.7z goto Error2

del /q AriaNgWke-Win64.7z
7za a AriaNgWke-Win64.7z ..\Win64\AriaNg.exe ..\Win64\Wke.dll
IF NOT EXIST AriaNgWke-Win64.7z goto Error2

goto End

:Error1
color 04
echo Compile Error!
goto End

7za a AriaNgWke-Win32.7z ..\Win32\*.*
7za a AriaNgWke-Win64.7z ..\Win64\*.*
:Error2
color 04
echo Pack Error!
goto End

:End
color 0a
echo Build Done!
pause
4 changes: 2 additions & 2 deletions Source/AriaNg.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<PropertyGroup Condition="'$(Base)'!=''">
<VerInfo_MinorVer>1</VerInfo_MinorVer>
<VerInfo_Build>3</VerInfo_Build>
<VerInfo_Release>1</VerInfo_Release>
<VerInfo_Release>2</VerInfo_Release>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_MajorVer>2021</VerInfo_MajorVer>
<Icon_MainIcon>AriaNg.ico</Icon_MainIcon>
<DCC_ImageBase>00400000</DCC_ImageBase>
<VerInfo_Keys>CompanyName=Super Studio;FileDescription=AriaNg;FileVersion=2021.1.1.3;InternalName=AriaNg;LegalCopyright=;LegalTrademarks=;OriginalFilename=AriaNg;ProductName=AriaNg;ProductVersion=2021.1.1;Comments=AriaNg, a modern web frontend making aria2 easier to use.</VerInfo_Keys>
<VerInfo_Keys>CompanyName=Super Studio;FileDescription=AriaNg;FileVersion=2021.1.2.3;InternalName=AriaNg;LegalCopyright=;LegalTrademarks=;OriginalFilename=AriaNg;ProductName=AriaNg;ProductVersion=2021.1.2;Comments=AriaNg, a modern web frontend making aria2 easier to use.</VerInfo_Keys>
<Manifest_File>AriaNg.manifest</Manifest_File>
<DCC_Namespace>Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Data;Datasnap;Web;Soap;Winapi;System.Win;$(DCC_Namespace)</DCC_Namespace>
<DCC_UnitSearchPath>..\Wke4Delphi;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
Expand Down
Binary file modified Source/AriaNg.res
Binary file not shown.

0 comments on commit 80e99f3

Please sign in to comment.