Skip to content

Commit

Permalink
update publish.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
keifufu committed Jul 18, 2023
1 parent 2408bad commit 3f290be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion publish.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ ECHO Getting version...
for /f "usebackq delims=" %%G in (`powershell -Command "[System.Reflection.Assembly]::LoadFrom('%~dp0\x64\Release\WebNowPlaying.dll').GetName().Version.ToString()"`) do (
set "version=%%~G"
)
:: 1.2.3.0 -> 1.2.3
set "version=%version:~0,-2%"
ECHO Building...
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /p:Configuration=Release /p:Platform=x86 /t:Build /restore > nul
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /p:Configuration=Release /p:Platform=x64 /t:Build /restore > nul
mkdir dist
xcopy /Y /I x64\Release\WebNowPlaying.dll dist\WebNowPlaying-x64.dll* > nul
xcopy /Y /I x86\Release\WebNowPlaying.dll dist\WebNowPlaying-x86.dll* > nul
ECHO Packaging...
mond package -Skin WebNowPlayingRedux -Author "keifufu, tjhrulz" -PackageVersion %version% -MinimumRainmeter 4.5.0 -MinimumWindows 10.0 -OutDirectory %~dp0\dist > nul
mond package -Skin WebNowPlayingRedux -Author "keifufu, tjhrulz" -PackageVersion %version% -MinimumRainmeter 4.5.0 -MinimumWindows 10.0 -OutPath %~dp0\dist\WebNowPlayingRedux_%version%.rmskin > nul

0 comments on commit 3f290be

Please sign in to comment.