SparkleShare/README.windows.md

48 lines
2.1 KiB
Markdown
Raw Normal View History

2012-01-14 10:08:52 +00:00
# Build on windows
2012-01-15 10:44:27 +00:00
* Install [.NET Framework 4.0](http://www.microsoft.com/download/en/details.aspx?id=17851) (if not installed yet)
2012-01-14 10:08:52 +00:00
2012-01-15 10:44:27 +00:00
* Install [msysGit](http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.8-preview20111206.exe)
2012-01-26 17:35:19 +00:00
* Change install location to `C:\msysgit` (location is hard-coded in the build scrits)
2012-01-21 23:05:34 +00:00
* Use default settings for all other questions during installation
2012-01-14 10:08:52 +00:00
2012-01-20 07:23:01 +00:00
* _Clone step_: Open a Git console (available in Start Menu > Git > Git Bash). On the command line write
2012-01-19 19:33:12 +00:00
2012-01-19 19:35:34 +00:00
cd /c
git clone -b gettext-cs git://github.com/serras/SparkleShare.git
cd SparkleShare
git submodule update --init
2012-01-19 19:33:12 +00:00
* This way you will get the SparkleShare source code in `C:\SparkleShare`
2012-01-15 10:44:27 +00:00
* Download [CefSharp-0.3.1.7z](https://github.com/downloads/chillitom/CefSharp/CefSharp-0.3.1.7z)
2012-01-21 23:05:34 +00:00
* Copy `avcodec-52.dll`, `avformat-52.dll`, `avutil-50.dll`, `CefSharp.dll`, `icudt42.dll` and `libcef.dll` from the 7z file in `CefSharp-0.3.1\Release\` to `c:\SparkleShare\bin` (create that directory if it does not exist)
2012-01-14 10:08:52 +00:00
2012-01-19 19:33:12 +00:00
* Copy the entire contents of the msysGit folder to `C:\SparkleShare\bin\msysgit`
2012-01-14 10:08:52 +00:00
2012-01-26 17:35:19 +00:00
* _Build step_: Open a command shell (available in Start Menu > Accessories > Command Prompt) and execute (Note to Windows 7 x64 users: change the WinDirNet variable in build.cmd to "%WinDir%\Microsoft.NET\Framework64")
2012-01-14 10:08:52 +00:00
2012-01-19 19:35:34 +00:00
C:
cd C:\SparkleShare
cd SparkleShare\Windows
build
2012-01-14 10:08:52 +00:00
2012-01-19 19:33:12 +00:00
* `C:\SparkleShare\bin` should now contain `SparkleLib.dll` and `SparkleShare.exe`, apart from folders `plugins`, `po` and `msysgit`
2012-01-14 10:08:52 +00:00
2012-01-22 18:49:37 +00:00
* If you want to build the Windows installer download and install [WiX 3.6](http://wix.sourceforge.net/)
2012-01-14 10:08:52 +00:00
2012-01-20 07:23:01 +00:00
* _Installer build step_: Then open a command shell and write almost the same as before, but with `installer` at the end
2012-01-19 19:33:12 +00:00
2012-01-19 19:35:34 +00:00
C:
cd C:\SparkleShare
cd SparkleShare\Windows
build installer
2012-01-19 19:33:12 +00:00
2012-01-19 19:35:34 +00:00
Now, each time you would like to get the latest changes open a Git console and run
2012-01-14 10:08:52 +00:00
2012-01-19 19:35:34 +00:00
cd /c/SparkleShare
git pull
git submodule update
2012-01-14 10:08:52 +00:00
2012-01-20 07:23:01 +00:00
and then run the build step and/or build installer step in the command shell.