Skip to content

Commit

Permalink
Steal everything possible from Gurtle
Browse files Browse the repository at this point in the history
  • Loading branch information
dail8859 committed Nov 22, 2015
1 parent ca38690 commit 774ea7c
Show file tree
Hide file tree
Showing 103 changed files with 3,698 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
*.user
/setup/TurtleHub.reg
/src/Setup/VersionNumberInclude.wxi
342 changes: 342 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# TurtleHub
TortoiseGit issue tracker plugin for projects hosted on GitHub
[TortoiseGit](https://tortoisegit.org/) issue tracker plugin for projects hosted on GitHub.

Actual not working.
*This is still in the early development stages, but should still be useful.*

Release versions can be downloaded on the [Release](https://github.com/dail8859/TurtleHub/releases) page.

**Note:** This project is not affiliated with or endorsed by Github, Inc.

## Usage
Obviously, [TortoiseGit](https://tortoisegit.org/) must be installed. Once TurtleHub is installed, right-click and go to `TortoiseGit > Settings > Issue Tracker Integration` and click `Add...`. TurtleHub should show up under the `Providers` dropdown menu. The `Working Tree Path` should be set to the directory of a local git repository. Click `Options` and add the username/repository of the repository located on Github.

## Development
The code has been developed using Visual Studio 2013. Running the `build.cmd` batch file will build the code and also create the installers in the `bin` directory.

## License
This code is released under the [GNU General Public License version 2](http://www.gnu.org/licenses/gpl-2.0.txt).
67 changes: 67 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
@echo off

REM This file is part of TurtleHub.
REM
REM Copyright (C)2015 Justin Dailey <dail8859@yahoo.com>
REM
REM TurtleHub is free software; you can redistribute it and/or
REM modify it under the terms of the GNU General Public License
REM as published by the Free Software Foundation; either
REM version 2 of the License, or (at your option) any later version.
REM
REM This program is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with this program; if not, write to the Free Software
REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

pushd "%~dp0"
SetLocal EnableDelayedExpansion

:: load the version numbers into variables
for /F "delims=, tokens=1,2,3" %%i in (src\version.txt) do (
set majorversion=%%i
set minorversion=%%j
set microversion=%%k
REM set wcversion=%%l
)
:: write the AssemblyInfoVersion.cs file with the version info
:: echo using System.Reflection; > src\Gurtle\Properties\AssemblyInfoVersion.cs
:: echo [assembly: AssemblyVersion("%majorversion%.%minorversion%.%microversion%.%wcversion%")] >> src\Gurtle\Properties\AssemblyInfoVersion.cs
:: echo [assembly: AssemblyFileVersion("%majorversion%.%minorversion%.%microversion%.%wcversion%")] >> src\Gurtle\Properties\AssemblyInfoVersion.cs

:: write the VersionNumberInclude.wxi file
echo ^<?xml version="1.0" encoding="utf-8"?^> > src\setup\VersionNumberInclude.wxi
echo ^<Include Id="VersionNumberInclude"^> >> src\setup\VersionNumberInclude.wxi
echo ^<?define MajorVersion="%majorversion%" ?^> >> src\setup\VersionNumberInclude.wxi
echo ^<?define MinorVersion="%minorversion%" ?^> >> src\setup\VersionNumberInclude.wxi
echo ^<?define MicroVersion="%microversion%" ?^> >> src\setup\VersionNumberInclude.wxi
REM echo ^<?define BuildVersion="%wcversion%" ?^> >> src\setup\VersionNumberInclude.wxi
echo ^</Include^> >> src\setup\VersionNumberInclude.wxi

for %%i in (Debug Release) do (
"%SystemRoot%\Microsoft.NET\Framework\v3.5\msbuild" /p:Configuration=%%i /p:Platform=x86 src\TurtleHub.sln
"%SystemRoot%\Microsoft.NET\Framework\v3.5\msbuild" /p:Configuration=%%i /p:Platform=x64 src\TurtleHub.sln
)

:: build the installer
del bin\*.msi
pushd src\Setup
for %%a in (x86 x64) do (
echo Building setup for %%a platform
set Platform=%%a
..\..\tools\WiX\candle -nologo -out ..\..\bin\Setup-%%a.wixobj Setup.wxs
..\..\tools\WiX\light -nologo -sice:ICE08 -sice:ICE09 -sice:ICE32 -sice:ICE61 -out ..\..\bin\TurtleHub-%majorversion%.%minorversion%.%microversion%-%%a.msi ..\..\bin\Setup-%%a.wixobj -ext WixUIExtension -cultures:en-us
REM ..\..\tools\WiX\candle -nologo -out ..\..\bin\MergeModule-%%a.wixobj MergeModule.wxs
REM ..\..\tools\WiX\light -nologo -sice:ICE08 -sice:ICE09 -sice:ICE32 -sice:ICE61 -out ..\..\bin\TurtleHub-%majorversion%.%minorversion%.%microversion%-%%a.msm ..\..\bin\MergeModule-%%a.wixobj
)
popd
del bin\*.wixobj
del bin\*.wixpdb

:end

popd
Binary file added logos/TurtleHub.ico
Binary file not shown.
Binary file added logos/png2ico.exe
Binary file not shown.
37 changes: 37 additions & 0 deletions logos/svg_export.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"""
Export svg files to images needed for TurtleHub.
"""

import subprocess as sp

exe_path = "C:\Program Files\Inkscape\inkscape.exe"
fname = "turtle_hub-%d.png"
sizes = [16, 32, 64, 128]


def generate_logos():
cmd = exe_path + " --export-png " + fname + " -w %d turtlehub_logo.svg"
for w in sizes:
print "Exporting logo size %dx%d..." % (w, w)
sp.call(cmd % (w, w))

def generate_ico():
print "Generating icon..."
cmd = "png2ico.exe TurtleHub.ico " + " ".join(fname % (w) for w in sizes)
sp.call(cmd)

def generate_banner():
print "Exporting banner..."
cmd = exe_path + " --export-png ../src/Setup/Banner.png -w 493 turtlehub_banner.svg"
sp.call(cmd)

def generate_dialog():
print "Exporting dialog..."
cmd = exe_path + " --export-png ../src/Setup/Dialog.png -w 493 turtlehub_dialog.svg"
sp.call(cmd)

if __name__ == "__main__":
generate_logos()
generate_ico()
generate_banner()
generate_dialog()
245 changes: 245 additions & 0 deletions logos/turtlehub_banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 774ea7c

Please sign in to comment.