[gitg/wip/win-installer] Add windows installer
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/win-installer] Add windows installer
- Date: Tue, 22 Dec 2015 15:50:55 +0000 (UTC)
commit c99697d9bf73f71f10927e81b2e5283b2ce40126
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Dec 22 16:46:25 2015 +0100
Add windows installer
data/icons/gitg.ico | Bin 0 -> 9662 bytes
win32/Makefile.am | 10 +
win32/README | 9 +
win32/installer/COPYING.rtf | 363 ++++++++++++++++++++++++++++++++++++
win32/installer/WixUIBannerBmp.bmp | Bin 0 -> 85962 bytes
win32/installer/WixUIDialogBmp.bmp | Bin 0 -> 615402 bytes
win32/installer/defines.wxi | 14 ++
win32/installer/gitg.wxs | 77 ++++++++
win32/make-installer | 178 ++++++++++++++++++
win32/make-installer.bat | 9 +
10 files changed, 660 insertions(+), 0 deletions(-)
---
diff --git a/data/icons/gitg.ico b/data/icons/gitg.ico
new file mode 100644
index 0000000..903ac2f
Binary files /dev/null and b/data/icons/gitg.ico differ
diff --git a/win32/Makefile.am b/win32/Makefile.am
new file mode 100644
index 0000000..ba8547d
--- /dev/null
+++ b/win32/Makefile.am
@@ -0,0 +1,10 @@
+# Stuff to build the Windows installer:
+EXTRA_DIST += \
+ win32/make-installer \
+ win32/make-installer.bat \
+ win32/README \
+ win32/installer/COPYING.rtf \
+ win32/installer/defines.wxi \
+ win32/installer/gitg.wxs \
+ win32/installer/WixUIBannerBmp.bmp \
+ win32/installer/WixUIDialogBmp.bmp
diff --git a/win32/README b/win32/README
new file mode 100644
index 0000000..bc1af38
--- /dev/null
+++ b/win32/README
@@ -0,0 +1,9 @@
+To create the installer you need to follow the next steps:
+ - install the latest version of msys2: http://msys2.github.io/
+ - launch msys2_shell.bat and update it with pacman -Syu, you will need to
+ relaunch msys2_shell.bat after updating it
+ - install git: pacman -S git
+ - clone gedit: git clone git://git.gnome.org/gitg
+ - cd gitg/win32
+ - edit make-installer and set the right version of gitg
+ - ./make-installer.bat
diff --git a/win32/installer/COPYING.rtf b/win32/installer/COPYING.rtf
new file mode 100644
index 0000000..0efa78e
--- /dev/null
+++ b/win32/installer/COPYING.rtf
@@ -0,0 +1,363 @@
+{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff0\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1040\deflangfe1040{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose
02020603050405020304}Times New Roman;}{\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier
New;}{\f37\froman\fcharset238\fprq2 Times New Roman CE;}
+{\f38\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f40\froman\fcharset161\fprq2 Times New Roman
Greek;}{\f41\froman\fcharset162\fprq2 Times New Roman Tur;}{\f42\fbidi \froman\fcharset177\fprq2 Times New
Roman (Hebrew);}
+{\f43\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f44\froman\fcharset186\fprq2 Times New
Roman Baltic;}{\f45\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f57\fmodern\fcharset238\fprq1
Courier New CE;}
+{\f58\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f60\fmodern\fcharset161\fprq1 Courier New
Greek;}{\f61\fmodern\fcharset162\fprq1 Courier New Tur;}{\f62\fbidi \fmodern\fcharset177\fprq1 Courier New
(Hebrew);}
+{\f63\fbidi \fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f64\fmodern\fcharset186\fprq1 Courier New
Baltic;}{\f65\fmodern\fcharset163\fprq1 Courier New
(Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;
+\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;
+\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql
\li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1
\af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1040\langfe1040\cgrid\langnp1040\langfenp1040
+\snext0 Normal;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\*
+\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tblind0\tblindtype3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv
+\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs20
\ltrch\fcs0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}{
+\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1
\af2\afs20\alang1025 \ltrch\fcs0 \f2\fs20\lang1040\langfe1040\cgrid\langnp1040\langfenp1040 \sbasedon0
\snext15 Plain Text;}}
+{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\rsidtbl \rsid749253\rsid4606596}{\*\generator Microsoft Word
11.0.0000;}{\info{\title GNU GENERAL PUBLIC LICENSE}{\author Enrico Usai}{\operator
Enrico Usai}
+{\creatim\yr2015\mo12\dy14\hr18\min28}{\revtim\yr2015\mo12\dy14\hr18\min28}{\version2}{\edmins0}{\nofpages6}{\nofwords2700}{\nofchars15394}{\nofcharsws18058}{\vern24617}{\*\password
00000000}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/
+2003/wordml}}\paperw11906\paperh16838\margl1152\margr1152\margt1417\margb1134\gutter0\ltrsect
+\deftab708\widowctrl\ftnbj\aenddoc\hyphhotz283\donotembedsysfont0\donotembedlingdata0\grfdocevents0\validatexml1\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0\showxmlerrors1\noxlattoyen\expshrtn
+\noultrlspc\dntblnsbdb\nospaceforul\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1152\dgvorigin1417\dghshow1\dgvshow1
+\jexpand\viewkind1\viewscale70\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule\nobrkwrptbl\snaptogridincell\allowfieldendsel\wrppunct
+\asianbrkrule\rsidroot4606596\newtblstyruls\nogrowautofit \fet0{\*\wgrffmtfilter
013f}\ilfomacatclnup0\ltrpar \sectd
\ltrsect\linex0\headery708\footery708\colsx708\endnhere\sectlinegrid360\sectdefaultcl\sectrsid9201171\sftnbj
{\*\pnseclvl1
+\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta
.}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta
.}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5
+\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang
{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta
)}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang
+{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain
\ltrpar\s15\ql
\li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid9201171 \rtlch\fcs1
\af2\afs20\alang1025
+\ltrch\fcs0 \f2\fs20\lang1040\langfe1040\cgrid\langnp1040\langfenp1040 {\rtlch\fcs1 \af2 \ltrch\fcs0
\lang2057\langfe1040\langnp2057\insrsid4606596\charrsid749253 GNU GENERAL PUBLIC LICENSE
+\par Version 2, June 1991
+\par
+\par Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+\par 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+\par Everyone is permitted to copy and distribute verbatim copies
+\par of this license document, but changing it is not allowed.
+\par
+\par Preamble
+\par
+\par The licenses for most software are designed to take away your
+\par freedom to share and change it. By contrast, the GNU General Public
+\par License is intended to guarantee your freedom to share and change free
+\par software--to make sure the software is free for all its users. This
+\par General Public License applies to most of the Free Software
+\par Foundation's software and to any other program whose authors commit to
+\par using it. (Some other Free Software Foundation software is covered by
+\par the GNU Lesser General Public License instead.) You can apply it to
+\par your programs, too.
+\par
+\par When we speak of free software, we are referring to freedom, not
+\par price. Our General Public Licenses are designed to make sure that you
+\par have the freedom to distribute copies of free software (and charge for
+\par this service if you wish), that you receive source code or can get it
+\par if you want it, that you can change the software or use pieces of it
+\par in new free programs; and that you know you can do these things.
+\par
+\par To protect your rights, we need to make restrictions that forbid
+\par anyone to deny you these rights or to ask you to surrender the rights.
+\par These restrictions translate to certain responsibilities for you if you
+\par distribute copies of the software, or if you modify it.
+\par
+\par For example, if you distribute copies of such a program, whether
+\par gratis or for a fee, you must give the recipients all the rights that
+\par you have. You must make sure that they, too, receive or can get the
+\par source code. And you must show them these terms so they know their
+\par rights.
+\par
+\par We protect your rights with two steps: (1) copyright the software, and
+\par (2) offer you this license which gives you legal permission to copy,
+\par distribute and/or modify the software.
+\par
+\par Also, for each author's protection and ours, we want to make certain
+\par that everyone understands that there is no warranty for this free
+\par software. If the software is modified by someone else and passed on, we
+\par want its recipients to know that what they have is not the original, so
+\par that any problems introduced by others will not reflect on the original
+\par authors' reputations.
+\par
+\par Finally, any free program is threatened constantly by software
+\par patents. We wish to avoid the danger that redistributors of a free
+\par program will individually obtain patent licenses, in effect making the
+\par program proprietary. To prevent this, we have made it clear that any
+\par patent must be licensed for everyone's free use or not licensed at all.
+\par
+\par The precise terms and conditions for copying, distribution and
+\par modification follow.
+\par
+\par GNU GENERAL PUBLIC LICENSE
+\par TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+\par
+\par 0. This License applies to any program or other work which contains
+\par a notice placed by the copyright holder saying it may be distributed
+\par under the terms of this General Public License. The "Program", below,
+\par refers to any such program or work, and a "work based on the Program"
+\par means either the Program or any derivative work under copyright law:
+\par that is to say, a work containing the Program or a portion of it,
+\par either verbatim or with modifications and/or translated into another
+\par language. (Hereinafter, translation is included without limitation in
+\par the term "modification".) Each licensee is addressed as "you".
+\par
+\par Activities other than copying, distribution and modification are not
+\par covered by this License; they are outside its scope. The act of
+\par running the Program is not restricted, and the output from the Program
+\par is covered only if its contents constitute a work based on the
+\par Program (independent of having been made by running the Program).
+\par Whether that is true depends on what the Program does.
+\par
+\par 1. You may copy and distribute verbatim copies of the Program's
+\par source code as you receive it, in any medium, provided that you
+\par conspicuously and appropriately publish on each copy an appropriate
+\par copyright notice and disclaimer of warranty; keep intact all the
+\par notices that refer to this License and to the absence of any warranty;
+\par and give any other recipients of the Program a copy of this License
+\par along with the Program.
+\par
+\par You may charge a fee for the physical act of transferring a copy, and
+\par you may at your option offer warranty protection in exchange for a fee.
+\par
+\par 2. You may modify your copy or copies of the Program or any portion
+\par of it, thus forming a work based on the Program, and copy and
+\par distribute such modifications or work under the terms of Section 1
+\par above, provided that you also meet all of these conditions:
+\par
+\par a) You must cause the modified files to carry prominent notices
+\par stating that you changed the files and the date of any change.
+\par
+\par b) You must cause any work that you distribute or publish, that in
+\par whole or in part contains or is derived from the Program or any
+\par part thereof, to be licensed as a whole at no charge to all third
+\par parties under the terms of this License.
+\par
+\par c) If the modified program normally reads commands interactively
+\par when run, you must cause it, when started running for such
+\par interactive use in the most ordinary way, to print or display an
+\par announcement including an appropriate copyright notice and a
+\par notice that there is no warranty (or else, saying that you provide
+\par a warranty) and that users may redistribute the program under
+\par these conditions, and telling the user how to view a copy of this
+\par License. (Exception: if the Program itself is interactive but
+\par does not normally print such an announcement, your work based on
+\par the Program is not required to print an announcement.)
+\par
+\par These requirements apply to the modified work as a whole. If
+\par identifiable sections of that work are not derived from the Program,
+\par and can be reasonably considered independent and separate works in
+\par themselves, then this License, and its terms, do not apply to those
+\par sections when you distribute them as separate works. But when you
+\par distribute the same sections as part of a whole which is a work based
+\par on the Program, the distribution of the whole must be on the terms of
+\par this License, whose permissions for other licensees extend to the
+\par entire whole, and thus to each and every part regardless of who wrote it.
+\par
+\par Thus, it is not the intent of this section to claim rights or contest
+\par your rights to work written entirely by you; rather, the intent is to
+\par exercise the right to control the distribution of derivative or
+\par collective works based on the Program.
+\par
+\par In addition, mere aggregation of another work not based on the Program
+\par with the Program (or with a work based on the Program) on a volume of
+\par a storage or distribution medium does not bring the other work under
+\par the scope of this License.
+\par
+\par 3. You may copy and distribute the Program (or a work based on it,
+\par under Section 2) in object code or executable form under the terms of
+\par Sections 1 and 2 above provided that you also do one of the following:
+\par
+\par a) Accompany it with the complete corresponding machine-readable
+\par source code, which must be distributed under the terms of Sections
+\par 1 and 2 above on a medium customarily used for software interchange; or,
+\par
+\par b) Accompany it with a written offer, valid for at least three
+\par years, to give any third party, for a charge no more than your
+\par cost of physically performing source distribution, a complete
+\par machine-readable copy of the corresponding source code, to be
+\par distributed under the terms of Sections 1 and 2 above on a medium
+\par customarily used for software interchange; or,
+\par
+\par c) Accompany it with the information you received as to the offer
+\par to distribute corresponding source code. (This alternative is
+\par allowed only for noncommercial distribution and only if you
+\par received the program in object code or executable form with such
+\par an offer, in accord with Subsection b above.)
+\par
+\par The source code for a work means the preferred form of the work for
+\par making modifications to it. For an executable work, complete source
+\par code means all the source code for all modules it contains, plus any
+\par associated interface definition files, plus the scripts used to
+\par control compilation and installation of the executable. However, as a
+\par special exception, the source code distributed need not include
+\par anything that is normally distributed (in either source or binary
+\par form) with the major components (compiler, kernel, and so on) of the
+\par operating system on which the executable runs, unless that component
+\par itself accompanies the executable.
+\par
+\par If distribution of executable or object code is made by offering
+\par access to copy from a designated place, then offering equivalent
+\par access to copy the source code from the same place counts as
+\par distribution of the source code, even though third parties are not
+\par compelled to copy the source along with the object code.
+\par
+\par 4. You may not copy, modify, sublicense, or distribute the Program
+\par except as expressly provided under this License. Any attempt
+\par otherwise to copy, modify, sublicense or distribute the Program is
+\par void, and will automatically terminate your rights under this License.
+\par However, parties who have received copies, or rights, from you under
+\par this License will not have their licenses terminated so long as such
+\par parties remain in full compliance.
+\par
+\par 5. You are not required to accept this License, since you have not
+\par signed it. However, nothing else grants you permission to modify or
+\par distribute the Program or its derivative works. These actions are
+\par prohibited by law if you do not accept this License. Therefore, by
+\par modifying or distributing the Program (or any work based on the
+\par Program), you indicate your acceptance of this License to do so, and
+\par all its terms and conditions for copying, distributing or modifying
+\par the Program or works based on it.
+\par
+\par 6. Each time you redistribute the Program (or any work based on the
+\par Program), the recipient automatically receives a license from the
+\par original licensor to copy, distribute or modify the Program subject to
+\par these terms and conditions. You may not impose any further
+\par restrictions on the recipients' exercise of the rights granted herein.
+\par You are not responsible for enforcing compliance by third parties to
+\par this License.
+\par
+\par 7. If, as a consequence of a court judgment or allegation of patent
+\par infringement or for any other reason (not limited to patent issues),
+\par conditions are imposed on you (whether by court order, agreement or
+\par otherwise) that contradict the conditions of this License, they do not
+\par excuse you from the conditions of this License. If you cannot
+\par distribute so as to satisfy simultaneously your obligations under this
+\par License and any other pertinent obligations, then as a consequence you
+\par may not distribute the Program at all. For example, if a patent
+\par license would not permit royalty-free redistribution of the Program by
+\par all those who receive copies directly or indirectly through you, then
+\par the only way you could satisfy both it and this License would be to
+\par refrain entirely from distribution of the Program.
+\par
+\par If any portion of this section is held invalid or unenforceable under
+\par any particular circumstance, the balance of the section is intended to
+\par apply and the section as a whole is intended to apply in other
+\par circumstances.
+\par
+\par It is not the purpose of this section to induce you to infringe any
+\par patents or other property right claims or to contest validity of any
+\par such claims; this section has the sole purpose of protecting the
+\par integrity of the free software distribution system, which is
+\par implemented by public license practices. Many people have made
+\par generous contributions to the wide range of software distributed
+\par through that system in reliance on consistent application of that
+\par system; it is up to the author/donor to decide if he or she is willing
+\par to distribute software through any other system and a licensee cannot
+\par impose that choice.
+\par
+\par This section is intended to make thoroughly clear what is believed to
+\par be a consequence of the rest of this License.
+\par
+\par 8. If the distribution and/or use of the Program is restricted in
+\par certain countries either by patents or by copyrighted interfaces, the
+\par }{\rtlch\fcs1 \af2 \ltrch\fcs0 \insrsid4606596\charrsid4606596 original copyright holder who places the
Program under this License
+\par may add an explicit geographical distribution limitation excluding
+\par those countries, so that distribution is permitted only in or among
+\par countries not thus excluded. In such case, this License incorporates
+\par the limitation as if written in the body of this License.
+\par
+\par 9. The Free Software Foundation may publish revised and/or new versions
+\par of the General Public License from time to time. Such new versions will
+\par be similar in spirit to the present version, but may differ in detail to
+\par address new problems or concerns.
+\par
+\par Each version is given a distinguishing version number. If the Program
+\par specifies a version number of this License which applies to it and "any
+\par later version", you have the option of following the terms and conditions
+\par either of that version or of any later version published by the Free
+\par Software Foundation. If the Program does not specify a version number of
+\par this License, you may choose any version ever published by the Free Software
+\par Foundation.
+\par
+\par 10. If you wish to incorporate parts of the Program into other free
+\par programs whose distribution conditions are different, write to the author
+\par to ask for permission. For software which is copyrighted by the Free
+\par Software Foundation, write to the Free Software Foundation; we sometimes
+\par make exceptions for this. Our decision will be guided by the two goals
+\par of preserving the free status of all derivatives of our free software and
+\par of promoting the sharing and reuse of software generally.
+\par
+\par NO WARRANTY
+\par
+\par 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+\par FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+\par OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+\par PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+\par OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+\par MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+\par TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+\par PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+\par REPAIR OR CORRECTION.
+\par
+\par 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+\par WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+\par REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+\par INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+\par OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+\par TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+\par YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+\par PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+\par POSSIBILITY OF SUCH DAMAGES.
+\par
+\par END OF TERMS AND CONDITIONS
+\par
+\par How to Apply These Terms to Your New Programs
+\par
+\par If you develop a new program, and you want it to be of the greatest
+\par possible use to the public, the best way to achieve this is to make it
+\par free software which everyone can redistribute and change under these terms.
+\par
+\par To do so, attach the following notices to the program. It is safest
+\par to attach them to the start of each source file to most effectively
+\par convey the exclusion of warranty; and each file should have at least
+\par the "copyright" line and a pointer to where the full notice is found.
+\par
+\par <one line to give the program's name and a brief idea of what it does.>
+\par Copyright (C) <year> <name of author>
+\par
+\par This program is free software; you can redistribute it and/or modify
+\par it under the terms of the GNU General Public License as published by
+\par the Free Software Foundation; either version 2 of the License, or
+\par (at your option) any later version.
+\par
+\par This program is distributed in the hope that it will be useful,
+\par but WITHOUT ANY WARRANTY; without even the implied warranty of
+\par MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+\par GNU General Public License for more details.
+\par
+\par You should have received a copy of the GNU General Public License along
+\par with this program; if not, write to the Free Software Foundation, Inc.,
+\par 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+\par
+\par Also add information on how to contact you by electronic and paper mail.
+\par
+\par If the program is interactive, make it output a short notice like this
+\par when it starts in an interactive mode:
+\par
+\par Gnomovision version 69, Copyright (C) year name of author
+\par Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+\par This is free software, and you are welcome to redistribute it
+\par under certain conditions; type `show c' for details.
+\par
+\par The hypothetical commands `show w' and `show c' should show the appropriate
+\par parts of the General Public License. Of course, the commands you use may
+\par be called something other than `show w' and `show c'; they could even be
+\par mouse-clicks or menu items--whatever suits your program.
+\par
+\par You should also get your employer (if you work as a programmer) or your
+\par school, if any, to sign a "copyright disclaimer" for the program, if
+\par necessary. Here is a sample; alter the names:
+\par
+\par Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+\par `Gnomovision' (which makes passes at compilers) written by James Hacker.
+\par
+\par <signature of Ty Coon>, 1 April 1989
+\par Ty Coon, President of Vice
+\par
+\par This General Public License does not permit incorporating your program into
+\par proprietary programs. If your program is a subroutine library, you may
+\par consider it more useful to permit linking proprietary applications with the
+\par library. If this is what you want to do, use the GNU Lesser General
+\par Public License instead of this License.
+\par
+\par
+\par }}
\ No newline at end of file
diff --git a/win32/installer/WixUIBannerBmp.bmp b/win32/installer/WixUIBannerBmp.bmp
new file mode 100644
index 0000000..68e11ff
Binary files /dev/null and b/win32/installer/WixUIBannerBmp.bmp differ
diff --git a/win32/installer/WixUIDialogBmp.bmp b/win32/installer/WixUIDialogBmp.bmp
new file mode 100644
index 0000000..1b3123e
Binary files /dev/null and b/win32/installer/WixUIDialogBmp.bmp differ
diff --git a/win32/installer/defines.wxi b/win32/installer/defines.wxi
new file mode 100644
index 0000000..eac5043
--- /dev/null
+++ b/win32/installer/defines.wxi
@@ -0,0 +1,14 @@
+<Include>
+ <?if $(sys.BUILDARCH) = x64 ?>
+ <?define ProductName = "gitg (64 bit)" ?>
+ <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
+ <?else ?>
+ <?define ProductName = "gitg" ?>
+ <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
+ <?endif ?>
+ <?define ProductVersion = "@VERSION@"?>
+ <?define Manufacturer = "GNOME"?>
+ <?define TopDir = "..\..\"?>
+ <?define LicenseFile = "$(var.TopDir)\win32\installer\COPYING.rtf"?>
+ <?define UpgradeCode = "{090D042C-A0F7-A6BD-A4FB-A1783C491F5B}"?>
+</Include>
diff --git a/win32/installer/gitg.wxs b/win32/installer/gitg.wxs
new file mode 100644
index 0000000..69f81ad
--- /dev/null
+++ b/win32/installer/gitg.wxs
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?include .\defines.wxi ?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)"
Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
+ <Package Id="*" Description="$(var.ProductName)" Comments="Contact: your local administrator"
InstallerVersion="405" Compressed="yes" Keywords="TEXT,EDITOR,GNOME" Languages="1033"
Manufacturer="$(var.Manufacturer)" InstallScope="perMachine"/>
+ <Icon Id="icon.ico" SourceFile="$(var.TopDir)\data\icons\gitg.ico"/>
+ <Property Id="ARPPRODUCTICON" Value="icon.ico" />
+ <Media Id="1" Cabinet="data.cab" EmbedCab="yes" />
+
+ <!-- Features -->
+ <Feature Id="gitg" Title="gitg" Level="1">
+ <ComponentGroupRef Id="binaries" />
+ <ComponentGroupRef Id="startMenuShortcuts" />
+ <ComponentGroupRef Id="licenseFiles" />
+ </Feature>
+
+ <!-- UI -->
+ <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
+ <WixVariable Id="WixUIBannerBmp" Value="$(var.TopDir)\win32\installer\WixUIBannerBmp.bmp" />
+ <WixVariable Id="WixUIDialogBmp" Value="$(var.TopDir)\win32\installer\WixUIDialogBmp.bmp" />
+ <WixVariable Id="WixUILicenseRtf" Value="$(var.LicenseFile)" />
+ <Condition Message="[ProductName] requires that your computer is running at least Windows
7">VersionNT>=601</Condition>
+
+ <UI>
+ <UIRef Id="WixUI_InstallDir" />
+ </UI>
+
+ <!-- Installer actions -->
+ <CustomAction Id="SetCompileSchemasCommand" Property="CompileSchemas"
Value=""[INSTALLDIR]\bin\glib-compile-schemas.exe"
"[INSTALLDIR]\share\glib-2.0\schemas""/>
+ <CustomAction Id="CompileSchemas" BinaryKey="WixCA" DllEntry="CAQuietExec" Return="ignore"
Execute="deferred" Impersonate="no" />
+ <CustomAction Id="SetUpdateIconCacheCommand" Property="UpdateIconCache"
Value=""[INSTALLDIR]\bin\gtk-update-icon-cache-3.0.exe"
"[INSTALLDIR]\share\icons\hicolor""/>
+ <CustomAction Id="UpdateIconCache" BinaryKey="WixCA" DllEntry="CAQuietExec" Return="ignore"
Execute="deferred" Impersonate="no" />
+
+ <InstallExecuteSequence>
+ <RemoveExistingProducts Before="InstallInitialize" />
+ <Custom Action="SetCompileSchemasCommand" After="InstallFiles" />
+ <Custom Action="CompileSchemas" After="SetCompileSchemasCommand" />
+ <Custom Action="SetUpdateIconCacheCommand" After="CompileSchemas" />
+ <Custom Action="UpdateIconCache" After="SetUpdateIconCacheCommand" />
+ </InstallExecuteSequence>
+
+ </Product>
+
+ <!-- Directory Tree -->
+ <Fragment>
+ <Directory Id="TARGETDIR" Name="SourceDir">
+ <Directory Id="$(var.PlatformProgramFilesFolder)" Name="$(var.PlatformProgramFilesFolder)">
+ <Directory Name="gitg" Id="gitg_dir">
+ <Directory Id="INSTALLDIR">
+ <Directory Name="license" Id="gitg_license" />
+ </Directory>
+ </Directory>
+ </Directory>
+ <Directory Id="ProgramMenuFolder">
+ <Directory Id="ProgramMenuDir" Name="gitg" />
+ </Directory>
+ </Directory>
+ </Fragment>
+
+ <!-- Components -->
+ <Fragment>
+ <ComponentGroup Id="startMenuShortcuts">
+ <Component Id="programShortcuts" Guid="{A071C7AE-C657-4FAD-B0CC-11A6D794D0D3}"
Directory="ProgramMenuDir">
+ <RegistryValue Key="Software\[Manufacturer]\[ProductName]" Root="HKCU" Type="string"
Value="[INSTALLDIR]" Name="InstallPath" />
+ <Shortcut Id="gitgExec" Name="gitg" Description="gitg" Target="[INSTALLDIR]\bin\gitg.exe" />
+ <Shortcut Id="uninstallProduct" Name="Uninstall gitg" Arguments="/x [ProductCode]"
Description="Uninstall gitg" Target="[System64Folder]msiexec.exe" />
+ <RemoveFolder Id="ProgramMenuDir" On="uninstall" />
+ </Component>
+ </ComponentGroup>
+
+ <ComponentGroup Id="licenseFiles" Directory="gitg_license">
+ <Component Id="COPYING.rtf" Guid="*">
+ <File Id="COPYING.rtf" Name="COPYING.rtf" Source="$(var.LicenseFile)" />
+ </Component>
+ </ComponentGroup>
+ </Fragment>
+</Wix>
diff --git a/win32/make-installer b/win32/make-installer
new file mode 100644
index 0000000..5f9342f
--- /dev/null
+++ b/win32/make-installer
@@ -0,0 +1,178 @@
+#!/usr/bin/env bash
+
+_wixdir="/c/Program Files (x86)/WiX Toolset v3.8"
+_thisdir="$(dirname $0)"
+test "${_thisdir}" = "." && _thisdir=${PWD}
+_installer_root="${_thisdir}"/installer
+_arch=$(uname -m)
+_date=$(date +'%Y%m%d')
+_dateqif=$(date +'%Y-%m-%d')
+_version= VERSION@
+_filename=gitg-${_arch}-${_version}.msi
+_log=/tmp/installer.log
+if [ "${_arch}" = "x86_64" ]; then
+ _bitness=64
+else
+ _bitness=32
+fi
+
+declare -a undo_commands
+
+_exitcode=5
+
+usage() {
+ echo "Usage: $0 stage#"
+ exit 1
+}
+
+if [ "$#" != "1" ]; then
+ usage
+fi
+
+_stage="$1"
+case "${_stage}" in
+ stage1 | stage2)
+ ;;
+ *)
+ usage
+ ;;
+esac
+
+exit_with_undo() {
+ for _cmd in ${undo_commands[ ]}; do
+ eval "$_cmd"
+ done
+ exit ${_exitcode}
+}
+
+exit_cleanly() {
+ _exitcode=$1; shift;
+ local _message=$1; shift;
+ echo "${_message}"
+ exit_with_undo
+}
+
+do_seds() {
+ find "${_installer_root}" \( -name "defines.wxi" \) -exec sed -i "s|@VERSION@|${_version}|g" "{}" \;
+ undo_commands+=("undo_seds")
+}
+
+undo_seds() {
+ find "${_installer_root}" \( -name "defines.wxi" \) -exec sed -i "s|ProductVersion =
\"${_version}\"|ProductVersion = \"@VERSION \"|g" "{}" \;
+}
+
+_newgitg=/tmp/gitg
+
+remove_useless_stuff() {
+ # remove .a files not needed for the installer
+ find installer/SourceDir -name "*.a" -exec rm -f {} \;
+ # remove unneeded binaries
+ find installer/SourceDir -not -name "g*.exe" -name "*.exe" -exec rm -f {} \;
+ rm -rf installer/SourceDir/bin/gtk3-demo*.exe
+ rm -rf installer/SourceDir/bin/gdbm*.exe
+ rm -rf installer/SourceDir/bin/py*
+ rm -rf installer/SourceDir/bin/*-config
+ # remove other useless folders
+ rm -rf installer/SourceDir/var
+ rm -rf installer/SourceDir/ssl
+ rm -rf installer/SourceDir/include
+ rm -rf installer/SourceDir/share/man
+ rm -rf installer/SourceDir/share/readline
+ rm -rf installer/SourceDir/share/info
+ rm -rf installer/SourceDir/share/aclocal
+ rm -rf installer/SourceDir/share/gnome-common
+ rm -rf installer/SourceDir/share/glade
+ rm -rf installer/SourceDir/share/gettext
+ rm -rf installer/SourceDir/share/terminfo
+ rm -rf installer/SourceDir/share/tabset
+ rm -rf installer/SourceDir/share/pkgconfig
+ rm -rf installer/SourceDir/share/bash-completion
+ rm -rf installer/SourceDir/share/appdata
+ rm -rf installer/SourceDir/share/gdb
+ # on windows we show the online help
+ rm -rf installer/SourceDir/share/help
+ rm -rf installer/SourceDir/share/gtk-doc
+ rm -rf installer/SourceDir/share/doc
+ # remove on the lib folder
+ rm -rf installer/SourceDir/lib/terminfo
+ rm -rf installer/SourceDir/lib/python2*
+ rm -rf installer/SourceDir/lib/pkgconfig
+ rm -rf installer/SourceDir/lib/peas-demo
+
+ # strip the binaries to reduce the size
+ find installer/SourceDir -name *.dll | xargs strip
+ find installer/SourceDir -name *.exe | xargs strip
+
+ # remove some translation which seem to add a lot of size
+ find installer/SourceDir/share/locale/ -type f | grep -v atk10.mo | grep -v gtk30.mo | grep -v libpeas.mo
| grep -v gsettings-desktop-schemas.mo | grep -v json-glib-1.0.mo | grep -v glib20.mo | grep -v gitg.mo |
grep -v gdk-pixbuf.mo | grep -v gtk30.mo | grep -v gtk30-properties.mo | grep -v gtksourceview-3.0.mo | grep
-v iso_*.mo | xargs rm
+ find installer/SourceDir/share/locale -type d | xargs rmdir -p --ignore-fail-on-non-empty
+}
+
+setup_source_dir() {
+ cp -R "${_newgitg}/mingw${_bitness}" "installer/SourceDir"
+ remove_useless_stuff
+}
+
+# Add -v to get more information.
+make_installer() {
+ setup_source_dir
+
+ _platform="x86"
+ if [ "${_arch}" = "x86_64" ]; then
+ _platform="x64"
+ fi
+
+ pushd "installer" > /dev/null
+ "${_wixdir}/bin/heat.exe" dir SourceDir -gg -dr INSTALLDIR -cg binaries -sfrag -sreg -srd -suid -template
fragment -out binaries.wxs
+ "${_wixdir}/bin/candle.exe" -arch ${_platform} gitg.wxs binaries.wxs
+ "${_wixdir}/bin/light.exe" -ext WixUtilExtension -ext WixUIExtension gitg.wixobj binaries.wixobj -o
"/tmp/${_filename}"
+ popd
+}
+
+trap exit_with_undo 1 2 15
+
+create_chroot_system() {
+ [ -d ${_newgitg} ] && rm -rf ${_newgitg}
+ mkdir -p "${_newgitg}"
+ pushd "${_newgitg}" > /dev/null
+
+ mkdir -p var/lib/pacman
+ mkdir -p var/log
+ mkdir -p tmp
+
+ pacman -Syu --root "${_newgitg}"
+ pacman -S filesystem bash pacman --noconfirm --root "${_newgitg}"
+ _result=$?
+ if [ "$_result" -ne "0" ]; then
+ exit_cleanly "1" "failed to create base data via command 'pacman -S filesystem bash pacman --noconfirm
--root ${_newgitg}'"
+ fi
+ popd > /dev/null
+}
+
+install_gitg_packages() {
+ pacman -S mingw-w64-${_arch}-librsvg mingw-w64-${_arch}-gitg mingw-w64-${_arch}-adwaita-icon-theme
--noconfirm --root "${_newgitg}"
+ _result=$?
+ if [ "$_result" -ne "0" ]; then
+ exit_cleanly "1" "failed to create ${_newgitg} via command 'pacman -S gitg --noconfirm --root
${_newgitg}'"
+ fi
+
+ # some packages are pulled by the deps but we do not need them like python2
+ pacman -Rdd mingw-w64-${_arch}-python2 --noconfirm --root "${_newgitg}"
+ pacman -Rdd mingw-w64-${_arch}-gtk2 --noconfirm --root "${_newgitg}"
+}
+
+if [ "${_stage}" = "stage1" ]; then
+ echo "Creating gitg chroot system ${_newgitg}"
+ create_chroot_system
+ exit 0
+fi
+
+echo "Installing gitg packages into ${_newgitg}"
+install_gitg_packages
+
+echo "Creating gitg installer /tmp/$_filename"
+[ -f /tmp/$_filename ] && rm -f /tmp/$_filename
+
+do_seds
+make_installer
+exit_cleanly "0" "All done, see ${_filename}"
diff --git a/win32/make-installer.bat b/win32/make-installer.bat
new file mode 100644
index 0000000..8638058
--- /dev/null
+++ b/win32/make-installer.bat
@@ -0,0 +1,9 @@
+C:/msys64/usr/bin/bash.exe -c "./make-gedit-installer stage1"
+if errorlevel 1 (
+exit /b %errorlevel%
+)
+
+C:/msys64/tmp/newgedit/msys64/usr/bin/bash.exe -c "./make-gedit-installer stage2"
+if errorlevel 1 (
+exit /b %errorlevel%
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]