1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

Add --version, add GenPKG.sh

This commit is contained in:
Dummerle 2021-03-17 10:12:11 +01:00
parent 6fc70824f2
commit b3890cb675
2 changed files with 12 additions and 0 deletions

5
.github/GenPKG.sh vendored Executable file
View file

@ -0,0 +1,5 @@
cd ..
export PYTHONPATH=$PWD
version=$(python3 Rare --version)
cd .github/rare
sed -i "s/.*pkgver=.*/pkgver=$version/" PKGBUILD

View file

@ -1,6 +1,8 @@
import logging
import os
import sys
from Rare import __version__
from PyQt5.QtCore import QTranslator, QSettings
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
@ -20,6 +22,11 @@ core = LegendaryCore()
def main():
if "--version" in sys.argv:
print(__version__)
return
app = QApplication([])
app.setApplicationName("Rare")
app.setOrganizationName("Rare")