Fixed windows build

This commit is contained in:
Wiktor Mazur
2019-09-12 15:28:38 +02:00
parent c8592fbed8
commit 7da8ff3565
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ after_build:
- pip install -r requirements.txt
- ps: cd src
- ps: cp ${env:APPVEYOR_BUILD_FOLDER}\target\release\meter.dll libmeter.pyd
- pyinstaller -F -w -i ..\..\assets\albion-stats-icon.ico -r libmeter.pyd meter.py
- pyinstaller -F -w -i ..\..\assets\albion-stats-icon.ico meter.py
- ps: deactivate
- ps: mv dist\meter.exe ..\..\albion-online-stats.exe
- ps: ls
+2 -3
View File
@@ -1,5 +1,4 @@
import sys
import os
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication
@@ -8,6 +7,7 @@ import libmeter
from main import MainWidget
from engine import initialize
from styling import style
if __name__ == "__main__":
initialize()
@@ -17,8 +17,7 @@ if __name__ == "__main__":
app = QApplication(sys.argv)
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'style.css')) as css:
app.setStyleSheet(css.read())
app.setStyleSheet(style)
geometry = app.screens()[0].size()
-3
View File
@@ -1,3 +0,0 @@
QWidget {
font-size: 10px;
}
+5
View File
@@ -0,0 +1,5 @@
style = """
QWidget {
font-size: 10px;
}
"""