• 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 … 112 113 114 115 116 117 Next »

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

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
[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
05-26-2009, 04:41 AM (This post was last modified: 05-26-2009, 04:42 AM by abfab126.)
#2
abfab126 Offline
Revenge of the B*tch
*******
Posts: 715
Threads: 7
Joined: Apr 2009
I got nothing to deal with devs or compilers , but this seems to me like a great Idea.

Good work.
Pentium G2120 Ivy Bridge 3.1Ghz
8GB 1333 DDR3
ASUS 560 TI CU2 TOP
Crucial M4 64Gb

Find
Reply
05-26-2009, 05:20 AM (This post was last modified: 05-26-2009, 05:23 AM by DacoTaco.)
#3
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,135
Threads: 31
Joined: Mar 2009
i got a batch to make revs for me a loooooooooooooooooooooooooooooooooooooooooooooooooong time ago lol
hell i think ive shared it with x some time ago


i guess ill post my source tho XD


EDIT: there. all the files(from the attached zip) should be located in your Binary folder and the 7z will have auto rev name + it'll be like i make my builds now (zip with in that a batch to extract the 7z incase the user doesn't have 7zip )
Code:
Code:
@echo off
@cls
echo easy dolphin zipper made by DacoTaco
echo -------------------------------------
echo.
pause
echo checking rev...
echo.
..\Source\Core\Common\SubWCRev.exe "..\." "rev_template.txt" "rev.txt"
for /f "tokens=1-2," %%a in (rev.txt) do (
set rev=%%a
)
echo.
pause
cls
echo Starting Dolphin !!!!!!32bit!!!!!!!! packing
pause
cd win32
del Dolphin32bit.7z
del Dolphin_*.zip
cls
echo making temp folder...
mkdir temp_rev
cd temp_rev
xcopy ..\..\..\Data\Sys\* Sys\* /e /y
xcopy ..\..\..\Data\User\* User\* /e /y
xcopy ..\Plugins\*.dll Plugins\*.dll /y
xcopy ..\*.dll *.dll /y
copy ..\*.exe *.exe /y
echo packing 32bit...
del Plugins\Plugin_nJoy_SDL_Test.*
..\..\7z.exe a -t7z ..\Dolphin32bit.7z *
cd ..
rmdir temp_rev /s /q
..\7z.exe a Dolphin.zip Dolphin32bit.7z ..\7z.exe ..\7z.dll extract.bat
echo.
echo coping...
copy Dolphin.zip Dolphin_%rev%.zip
del Dolphin.zip
pause
cls
echo Starting Dolphin !!!!!!64bit!!!!!!!! packing
pause
cls
echo packing 64bit...
cd ..\x64
del Dolphin64bit.7z
del Dolphin_*.zip
echo making temp folder...
mkdir temp_rev
cd temp_rev
xcopy ..\..\..\Data\Sys\* Sys\* /e /y
xcopy ..\..\..\Data\User\* User\* /e /y
xcopy ..\Plugins\*.dll Plugins\*.dll /y
xcopy ..\*.dll *.dll /y
copy ..\*.exe *.exe /y
echo packing 64bit...
del Plugins\Plugin_nJoy_SDL_Test.*
..\..\7z.exe a -t7z ..\Dolphin64bit.7z *
cd ..
rmdir temp_rev /s /q
..\7z.exe a Dolphin.zip Dolphin64bit.7z ..\7z.exe ..\7z.dll extract.bat
echo.
echo coping...
copy Dolphin.zip Dolphin_%rev%.zip
del Dolphin.zip
echo.
echo.
echo all done
pause
set rev=
@echo on


Attached Files
.zip   Packer.zip (Size: 409.27 KB / Downloads: 167)
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
05-26-2009, 05:22 AM
#4
ThuGie Offline
Member
***
Posts: 59
Threads: 5
Joined: May 2009
Hehe,
Yours is probably better then mine,
I trown it together quite fast so Big Grin,

But should be nice to see yours if its better then mine then i will use yours :p.
Find
Reply
05-26-2009, 05:24 AM
#5
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,135
Threads: 31
Joined: Mar 2009
(05-26-2009, 05:22 AM)ThuGie Wrote: Hehe,
Yours is probably better then mine,
I trown it together quite fast so Big Grin,

But should be nice to see yours if its better then mine then i will use yours :p.
already did Tongue
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
05-26-2009, 05:32 AM
#6
ThuGie Offline
Member
***
Posts: 59
Threads: 5
Joined: May 2009
Ah yes i just noticed lol,
When i read your message with "already did :p",
I was checking your threads and was like i dont see it,
Then i reread it and noticed you edited your post lol :p,

And i like mine a bit better :$ sorry,
But are you able to build x64 builds ?
Since as you can read in my other posts i am unable to do so Sad.
Find
Reply
05-26-2009, 05:36 AM
#7
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,135
Threads: 31
Joined: Mar 2009
(05-26-2009, 05:32 AM)ThuGie Wrote: Ah yes i just noticed lol,
When i read your message with "already did :p",
I was checking your threads and was like i dont see it,
Then i reread it and noticed you edited your post lol :p,

And i like mine a bit better :$ sorry,
But are you able to build x64 builds ?
Since as you can read in my other posts i am unable to do so Sad.
yes i can :/
that batch can do both :/

im guessing no upx for 64bit?
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
05-26-2009, 05:38 AM
#8
ThuGie Offline
Member
***
Posts: 59
Threads: 5
Joined: May 2009
Nah i mean really build,
As in compile 64bit..
Find
Reply
05-26-2009, 06:24 AM
#9
DacoTaco Offline
His royal bitchness Tacoboy
*******
Moderators
Posts: 1,135
Threads: 31
Joined: Mar 2009
(05-26-2009, 05:38 AM)ThuGie Wrote: Nah i mean really build,
As in compile 64bit..
oh :/
whats the problem?
[Image: PeachSig.jpg]
[Image: 566286.png]
[Image: 2280403.png]
Website Find
Reply
05-26-2009, 06:29 AM
#10
abfab126 Offline
Revenge of the B*tch
*******
Posts: 715
Threads: 7
Joined: Apr 2009
Who has the Biggest One ?? Hmmm? LOOOOL
Pentium G2120 Ivy Bridge 3.1Ghz
8GB 1333 DDR3
ASUS 560 TI CU2 TOP
Crucial M4 64Gb

Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma