add icon to .spec files

This commit is contained in:
Mauricio 2020-08-08 18:58:58 -04:00
parent df91711f88
commit f499a1c15b
5 changed files with 8 additions and 5 deletions

BIN
AO2XP.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,4 +1,4 @@
import sys, thread, time import sys, thread, time, os
from os.path import exists from os.path import exists
from PyQt4 import QtGui, QtCore from PyQt4 import QtGui, QtCore
app = QtGui.QApplication(sys.argv) app = QtGui.QApplication(sys.argv)
@ -8,7 +8,7 @@ if not debugmode:
fakebass = len(sys.argv) > 1 and sys.argv[1] == "bass" fakebass = len(sys.argv) > 1 and sys.argv[1] == "bass"
if not exists("bass.dll") or fakebass: if not exists("bass.dll") or fakebass:
QtGui.QMessageBox.critical(None, "Unable to launch game", "Couldn't find the file 'bass.dll' on the client folder.\nAO2XP needs this file in order to play sounds and music.\nThe file is included in the client's zip file, make sure it's in the same folder as AO2XP.exe") QtGui.QMessageBox.critical(None, "Unable to launch game", "Couldn't find the file 'bass.dll' on the client folder.\nAO2XP needs this file in order to play sounds and music.\nThe file is included in the client's zip file, make sure it's in the same folder as AO2XP.exe")
sys.exit(2) os._exit(-2)
class gamewindow(QtGui.QMainWindow): class gamewindow(QtGui.QMainWindow):
def __init__(self): def __init__(self):
@ -55,8 +55,9 @@ if not debugmode:
if jm == QtGui.QMessageBox.Yes: if jm == QtGui.QMessageBox.Yes:
import basedownloader import basedownloader
code = basedownloader.downloadVanilla() code = basedownloader.downloadVanilla()
if code != 0: os._exit(code)
else: else:
sys.exit(3) os._exit(-3)
from pybass import * from pybass import *
import gameview, mainmenu, options, ini import gameview, mainmenu, options, ini

View File

@ -25,4 +25,5 @@ exe = EXE(pyz,
debug=False, debug=False,
strip=False, strip=False,
upx=True, upx=True,
console=False) console=False,
icon="AO2XP.ico")

BIN
AO2XP_console.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -25,4 +25,5 @@ exe = EXE(pyz,
debug=False, debug=False,
strip=False, strip=False,
upx=True, upx=True,
console=True) console=True,
icon="AO2XP_console.ico")