• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 113 114 115 116 117 Next »

[Release] .Bat Release creator.
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Release] .Bat Release creator.
05-26-2009, 04:38 AM
#1
ThuGie Offline
Member
***
Posts: 59
Threads: 5
Joined: May 2009
Hey guys,

I was bored and noticed people releasing there own builds what is awesome,
And it saves the dev team time Smile.
But to save some people some messing up, I created this.
I hope this is the right place to release this Smile,
But here's what it does,

This simple .bat file will create a compressed version of the emu aka smaller size,
Using upx,
After that it will create 2 seperate .rar files,
Normal Dolphin and Dolphin_upx,
With in front of the name the rev number,
Sample
[3286]Dolphin.rar
[3286]Dolphin_upx.rar

What makes it alot more easy to release right Smile.
Code:
@ECHO OFF

@echo off
for /f "skip=3 delims=" %%a in (..\.svn\entries) do (
SET releasedRev=%%a
goto :next
)
:next

echo Current rev is %releasedRev%


echo Copying Win32 Files!
xcopy /e/d C:\Dolphin\trunk\Binary\Win32\* C:\Dolphin\Ready_Release\Dolphin > log.txt
echo Copying Win32_upx Files!
xcopy /e/d C:\Dolphin\trunk\Binary\Win32\* C:\Dolphin\Ready_Release\Dolphin_upx\ > log.txt

echo Compressing .exe files
upx -9 Dolphin_upx\*.exe > log.txt
echo Compressing needed .dll files
upx -9 Dolphin_upx\*.dll > log.txt
echo Compressing plugins.
upx -9 Dolphin_upx\Plugins\*.dll > log.txt

echo Raring Win32 version!
cd .\Dolphin\
"C:\Program Files\WinRAR\"rar a -m5 -R Dolphin.rar .\ > ..\log.txt
move Dolphin.rar ..\[%releasedRev%]Dolphin.rar > ..\log.txt

echo Raring Win32_upx version!
cd ..\Dolphin_upx\
"C:\Program Files\WinRAR\"rar a -m5 -R Dolphin_upx.rar .\ > ..\log.txt
move Dolphin_upx.rar ..\[%releasedRev%]Dolphin_upx.rar > ..\log.txt

del ..\log.txt

echo Finished!!!
pause

Now ok make sure Your Revision Source directory is in,
"C:\Dolphin\trunk\Source\"
Now in "C:\Dolphin\"
Create a directory called "Ready_Release"
Aka "C:\Dolphin\Ready_Release\"
Create a .bat file in there and place the code Smile,
Now download upx latest version should work like a charm,
And place the upx.exe next to the created .bat file,
Now create 2 directory's
Dolphin and Dolphin_upx,

Compile your build and when finished run the .bat file Smile.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[Release] .Bat Release creator. - ThuGie - 05-26-2009, 04:38 AM
RE: [Release] .Bat Release creator. - abfab126 - 05-26-2009, 04:41 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 05:20 AM
RE: [Release] .Bat Release creator. - ThuGie - 05-26-2009, 05:22 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 05:24 AM
RE: [Release] .Bat Release creator. - ThuGie - 05-26-2009, 05:32 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 05:36 AM
RE: [Release] .Bat Release creator. - ThuGie - 05-26-2009, 05:38 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 06:24 AM
RE: [Release] .Bat Release creator. - abfab126 - 05-26-2009, 06:29 AM
RE: [Release] .Bat Release creator. - ThuGie - 05-26-2009, 06:30 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 06:33 AM
RE: [Release] .Bat Release creator. - ThuGie - 05-26-2009, 06:43 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 06:46 AM
RE: [Release] .Bat Release creator. - Nevada - 05-26-2009, 06:59 AM
RE: [Release] .Bat Release creator. - DacoTaco - 05-26-2009, 09:25 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode