PageRenderTime 55ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Scripts/Compile.ahk

http://ArmoryViewer.codeplex.com
AutoHotKey | 35 lines | 20 code | 6 blank | 9 comment | 0 complexity | fab29d603fece79bf9b8a78ef8b1a2c1 MD5 | raw file
  1. ;
  2. ; AutoHotkey Version: 1.x
  3. ; Language: English
  4. ; Platform: Win9x/NT
  5. ; Author: A.N.Other <myemail@nowhere.com>
  6. ;
  7. ; Script Function:
  8. ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
  9. ;
  10. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  11. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  12. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  13. FileCreateDir, %A_ScriptDir%\..\_bin\Update\
  14. UpdateDir = %A_ScriptDir%\..\_bin\Update
  15. RegRead, VSExec, HKCU, Software\Microsoft\VisualStudio\10.0_Config, InstallDir
  16. RegRead, AHKExec, HKLM, Software\AutoHotkey, InstallDir
  17. RegRead, NSISExec, HKEY_CLASSES_ROOT, NSIS.Script\shell\compile\command
  18. StringReplace, NSISExec, NSISExec, `%1, %A_ScriptDir%\setup.nsi
  19. StringReplace, NSISExec, NSISExec, nsisw, nsis
  20. VSExec = "%VSExec%devenv.exe"
  21. AHKExec = "%AHKExec%\Compiler\Ahk2Exe.exe"
  22. Solution = "%A_ScriptDir%\..\Armory Viewer.sln"
  23. FileList = "%UpdateDir%\..\ArmoryData.dll" "%UpdateDir%\..\ArmoryViewer.exe" "%UpdateDir%\..\Microsoft.WindowsAPICodePack.dll" "%UpdateDir%\..\Microsoft.WindowsAPICodePack.Shell.dll" "%UpdateDir%\..\UIControls.dll" "%UpdateDir%\..\es-ES"
  24. RunWait, %VSExec% %SOLUTION% /build Release
  25. RunWait, %AHKExec% /in "%A_ScriptDir%\Updater.ahk" /out "%A_ScriptDir%\..\_bin\Update\updater"
  26. RunWait, 7z.exe a -tzip "%UpdateDir%\archive" %FileList%,,Hide
  27. FileMove, %UpdateDir%\archive.zip, %UpdateDir%\archive
  28. RunWait, %NSISExec%,,Hide
  29. FileMove, %UpdateDir%\..\Setup.exe, %UpdateDir%\setup