Skip to content

Commit

Permalink
Add icon to pyinstaller, remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic22 authored and bitphage committed Jul 7, 2019
1 parent ff19ced commit 8760c1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
26 changes: 0 additions & 26 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ version: 0.1.{build}
image: Visual Studio 2015

environment:
# change artifact name
# artifactName: $(APPVEYOR_BUILD_VERSION)-$(APPVEYOR_REPO_COMMIT).zip
#ApplicationVersion: '3.0'
matrix:
# Python 3.6.6 - 64-bit
- PYTHON: "C:\\Python36-x64"
Expand All @@ -24,21 +21,11 @@ install:
- copy /Y C:\projects\dexbot\dist\DEXBot-gui.exe C:\projects\dexbot\installer\windows\msi\DEXBot.exe
- '7z a DEXBot-gui-win64.zip %APPVEYOR_BUILD_FOLDER%\dist\DEXBot-gui.exe'
# read dexbot version from __init__.py
- dir
- echo ############
- dir .\dexbot
- for /f "delims== eol=# tokens=1,2" %%G in (.\dexbot\__init__.py) do set %%G=%%H
- echo -############################################################################-
- echo %VERSION%
# set to version and replace ' with empty character
- set ApplicationVersion=%VERSION:'=%
- echo %ApplicationVersion%

# wix
#before_build:
# - for /f "delims== eol=# tokens=1,2" %%G in (.\dexbot\__init__.py) do set %%G=%%H
#- echo -############################################################################-
#- echo %VERSION%

configuration:
- Release
Expand All @@ -63,9 +50,6 @@ artifacts:
#https://help.appveyor.com/discussions/questions/4249-renaming-artifact
#%artifactName%




#---------------------------------#
# Deployment #
#---------------------------------#
Expand All @@ -83,13 +67,3 @@ deploy:
secure: 9qvwlVUHFBV4GwMz1Gu2HSnqU8Ex2nv5dsY4mVNCurrb+6ULIoHPgbvJPWTo3qV6
on:
appveyor_repo_tag: true # deploy on tag push only

#---------------------------------#
# Notifications #
#---------------------------------#

# notifications:
# - provider: Slack
# auth_token:
# secure: G9OMj9l2s3+lX8cRiNXXhuQJpnnjcBc0cqP8gzkdKVWqGA8vBTOIPGxD/536VKpeBH/5dJFQWT+vmnGS+XciaCg4hh5s6hDpnvePq2+uEYE=
# channel: '#ci'
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')

0 comments on commit 8760c1a

Please sign in to comment.