Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

584 dexbot installer #626

Merged
merged 67 commits into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
eff1f3c
Add windows installer
dominic22 May 15, 2019
f273594
Add variables, adjust texts
dominic22 May 26, 2019
9c4167f
Initial try to add installer into build process
dominic22 May 31, 2019
56f7d35
Remove duplicated key
dominic22 Jun 1, 2019
0d67b2b
Remove duplicated key
dominic22 Jun 1, 2019
e274fcb
move image to top
dominic22 Jun 1, 2019
d24d61a
remove platform
dominic22 Jun 1, 2019
a6fa6e0
adjust path
dominic22 Jun 1, 2019
fe97c8c
change to vs 2015
dominic22 Jun 1, 2019
76c4030
remove nuget restore
dominic22 Jun 1, 2019
b4c4fcf
Change platform and add project dependency
dominic22 Jun 1, 2019
0c96524
Add preprocessor var for build config,
dominic22 Jun 1, 2019
f75721b
Change artifact path
dominic22 Jun 1, 2019
e737c5c
change copy script
dominic22 Jun 2, 2019
dc3e20e
always copy script executable
dominic22 Jun 2, 2019
0ca2e2c
revert executable location
dominic22 Jun 2, 2019
1347cfe
change artifact path
dominic22 Jun 2, 2019
5882e26
set version by env var
dominic22 Jun 2, 2019
f3470c5
change build order
dominic22 Jun 2, 2019
ec51c74
output dir
dominic22 Jun 4, 2019
a639b8c
further output
dominic22 Jun 4, 2019
650a0a2
fix output commands
dominic22 Jun 4, 2019
bac5c80
copy correct file
dominic22 Jun 4, 2019
bc2ddd2
echo version
dominic22 Jun 4, 2019
f76c409
read env vars by __init__.py, add version constant to project file
dominic22 Jun 4, 2019
2b72e15
fix command line
dominic22 Jun 4, 2019
9457529
update path to file
dominic22 Jun 4, 2019
f7b295a
update path #2
dominic22 Jun 4, 2019
bf6e103
use double %
dominic22 Jun 4, 2019
22513bb
Change project preprocessor vars
dominic22 Jun 4, 2019
1dc7a9d
add before build to set vars
dominic22 Jun 4, 2019
70ea2f3
add comment in init.py
dominic22 Jun 5, 2019
adcbdaf
try to set applicationversion by env var
dominic22 Jun 5, 2019
cc059fd
rename applicationversion to version
dominic22 Jun 5, 2019
f4597b7
use applicationversion and if to check if already set
dominic22 Jun 5, 2019
3517439
change msi project file
dominic22 Jun 5, 2019
d133e6e
replace ' with empty char at version var
dominic22 Jun 5, 2019
9120b8b
Set Application pre proc. var by ApplicationVersion env var
dominic22 Jun 5, 2019
ff19ced
Change preprocessor var for release also
dominic22 Jun 5, 2019
8760c1a
Add icon to pyinstaller, remove obsolete code
dominic22 Jun 8, 2019
0d3ca84
use double slash
dominic22 Jun 8, 2019
0dcc177
set include est to false for python executable
dominic22 Jun 8, 2019
fa19500
remove obsolete code
dominic22 Jun 8, 2019
781b946
Add new dexbot logo
dominic22 Jun 13, 2019
a6d2bc3
Add border to icon
dominic22 Jun 13, 2019
663a766
Change application icon
dominic22 Jun 13, 2019
cae243b
Add whitespaces
dominic22 Jun 16, 2019
c1af876
Review findings
dominic22 Jun 16, 2019
c3583a5
remove line
dominic22 Jun 16, 2019
dd8742f
update variable script
dominic22 Jun 17, 2019
992e17e
change var script
dominic22 Jun 17, 2019
12ec690
add if statement
dominic22 Jun 17, 2019
98935bf
trim var
dominic22 Jun 17, 2019
a92d1f3
fix path
dominic22 Jun 17, 2019
66dbbf6
Fix path to init file
dominic22 Jun 17, 2019
37f4082
Remove obsolete code
dominic22 Jun 18, 2019
6b7ae83
Add DEXBot executable to gitignore
dominic22 Jun 19, 2019
c88c827
Replace # with - in license
dominic22 Jun 19, 2019
b466e56
Ignore Dexbot.exe in specific installer gitignore
Jun 19, 2019
c95b098
fix rename file name, remove python
dominic22 Jun 27, 2019
fce25b8
Fix filedownload script
dominic22 Jun 27, 2019
39b99e5
Change file name of executable
dominic22 Jun 27, 2019
4a2832b
Fix path of rename script
dominic22 Jun 27, 2019
c17b0e3
Fix path for rename
dominic22 Jun 27, 2019
14158ba
use ps env var
dominic22 Jun 27, 2019
47bb0bf
Install uptick not per machine
dominic22 Jun 27, 2019
74c37cf
Make uptick install script more robust, use python 3.6.6
dominic22 Jun 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,42 @@ environment:
# Build #
#---------------------------------#

build: off

configuration: Release

install:
- ps: Start-FileDownload 'https://www.python.org/ftp/python/3.6.6/python-3.6.6-amd64.exe'
- copy python-3.6.6-amd64.exe installer\windows\bundle\prerequisites\python-3.6.6.exe
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%;C:\MinGW\bin
- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
- copy c:\Python36-x64\python.exe c:\Python36-x64\python3.exe
- python --version
- make install

after_test:
- make package
- '7z a DEXBot-gui-win64.zip %APPVEYOR_BUILD_FOLDER%\dist\DEXBot-gui.exe'
- copy /Y dist\DEXBot-gui.exe installer\windows\msi\DEXBot.exe
# Read dexbot version from __init__.py
- ps: Get-Content dexbot\__init__.py | Foreach-Object { $var = $_.Split('='); if($var[0].Trim() -eq 'VERSION') { $env:VERSION = $var[1].Trim(); }}
# Set to version and replace ' with empty character
- set ApplicationVersion=%VERSION:'=%
- '7z a DEXBot-gui-win64-%ApplicationVersion%.zip %APPVEYOR_BUILD_FOLDER%\dist\DEXBot-gui.exe'

# Visual studio configuration
configuration:
- Release
platform: x86
build:
verbosity: normal

after_build:
- ps: Rename-Item -Path ".\installer\windows\bundle\bin\$env:CONFIGURATION\DEXBot-installer.exe" -NewName "DEXBot-installer-$env:ApplicationVersion.exe"

# @TODO: Run tests..
test_script:
- "echo tests..."

# Artifacts as relative path to the build folder C:\projects\dexbot
artifacts:
- path: DEXBot-gui-win64.zip
name: DEXBot-gui-win64.zip
- path: DEXBot-gui-win64-%ApplicationVersion%.zip
name: DEXBot-gui-win64-%ApplicationVersion%.zip
- path: installer\windows\bundle\bin\%CONFIGURATION%\DEXBot-installer-%ApplicationVersion%.exe
name: DEXBot-installer-%ApplicationVersion%.exe

#---------------------------------#
# Deployment #
Expand All @@ -50,7 +64,7 @@ deploy:
auth_token:
secure: 9qvwlVUHFBV4GwMz1Gu2HSnqU8Ex2nv5dsY4mVNCurrb+6ULIoHPgbvJPWTo3qV6
on:
appveyor_repo_tag: true # deploy on tag push only
appveyor_repo_tag: true # Deploy on tag push only

#---------------------------------#
# Notifications #
Expand Down
Binary file added dexbot/resources/img/dexbot-icon.ico
Binary file not shown.
Binary file added dexbot/resources/img/dexbot-icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
145 changes: 145 additions & 0 deletions dexbot/resources/svg/dexbot-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions gui.spec
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ exe = EXE(pyz,
name=os.path.join('dist', 'DEXBot-gui' + ('.exe' if sys.platform == 'win32' else '')),
debug=True,
strip=False,
icon=None,
icon='.\\installer\\windows\\msi\\assets\\dexbot-icon.ico',
upx=True,
runtime_tmpdir=None,
console=True)

if sys.platform == 'darwin':
app = BUNDLE(exe,
name='DEXBot-gui.app',
icon=None)
icon='./installer/windows/msi/assets/dexbot-icon.ico')

64 changes: 64 additions & 0 deletions installer/windows/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

DexbotInstallerBootstrapper/bin/Debug

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Mono auto generated files
mono_crash.*

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

DEXBot.exe
python-3.*.*.exe
Binary file added installer/windows/bundle/assets/dexbot-icon.ico
Binary file not shown.
Binary file added installer/windows/bundle/assets/dexbot-icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions installer/windows/bundle/bundle.wixproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>3.10</ProductVersion>
<ProjectGuid>0a6fa202-7443-4f18-a462-f77c543bf921</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<!-- VERSION property to set it von __init__.py -->
<!--<VERSION Condition=" '$(VERSION)' == '' ">0.0.0.0</VERSION>-->
<OutputName>DEXBot-installer</OutputName>
<OutputType>Bundle</OutputType>
<Name>bundle</Name>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>ApplicationVersion=$(ApplicationVersion);Build=$(Configuration)</DefineConstants>
<CompilerAdditionalOptions>
</CompilerAdditionalOptions>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>ApplicationVersion=$(ApplicationVersion);Build=$(Configuration)</DefineConstants>
<CompilerAdditionalOptions>
</CompilerAdditionalOptions>
</PropertyGroup>
<ItemGroup>
<Compile Include="bundle.wxs" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixBalExtension">
<HintPath>$(WixExtDir)\WixBalExtension.dll</HintPath>
<Name>WixBalExtension</Name>
</WixExtension>
</ItemGroup>
<ItemGroup>
<Folder Include="assets\" />
<Folder Include="resources" />
<Folder Include="prerequisites" />
</ItemGroup>
<ItemGroup>
<Content Include="assets\dexbot-icon.ico" />
<Content Include="assets\dexbot-icon.jpg" />
<Content Include="prerequisites\python-3.6.6.exe" />
<Content Include="prerequisites\uptick.bat" />
<Content Include="resources\classic_theme.xml" />
<Content Include="Resources\license.rtf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="resources\variables.wxi" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources\classic_theme.wxl" />
</ItemGroup>
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
</Target>
<PropertyGroup>
<PreBuildEvent />
</PropertyGroup>
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Wix.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Loading