-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
266 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
build/ | ||
dist/ | ||
__pycache__ | ||
config.ini | ||
config.ini | ||
file_version_info.txt | ||
lamo-watcher.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import PyInstaller.__main__ | ||
|
||
from modules.config import Config | ||
|
||
import pyinstaller_versionfile | ||
|
||
pyinstaller_versionfile.create_versionfile_from_input_file( | ||
output_file="file_version_info.txt", | ||
input_file="metadata.yml", | ||
version=Config().version | ||
) | ||
|
||
PyInstaller.__main__.run([ | ||
'compile.spec', | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# UTF-8 | ||
# | ||
# For more details about fixed file info 'ffi' see: | ||
# http://msdn.microsoft.com/en-us/library/ms646997.aspx | ||
|
||
VSVersionInfo( | ||
ffi=FixedFileInfo( | ||
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) | ||
# Set not needed items to zero 0. Must always contain 4 elements. | ||
filevers=(1,2,1,1), | ||
prodvers=(1,2,1,1), | ||
# Contains a bitmask that specifies the valid bits 'flags'r | ||
mask=0x3f, | ||
# Contains a bitmask that specifies the Boolean attributes of the file. | ||
flags=0x0, | ||
# The operating system for which this file was designed. | ||
# 0x4 - NT and there is no need to change it. | ||
OS=0x40004, | ||
# The general type of file. | ||
# 0x1 - the file is an application. | ||
fileType=0x1, | ||
# The function of the file. | ||
# 0x0 - the function is not defined for this fileType | ||
subtype=0x0, | ||
# Creation date and time stamp. | ||
date=(0, 0) | ||
), | ||
kids=[ | ||
StringFileInfo( | ||
[ | ||
StringTable( | ||
u'040904B0', | ||
[StringStruct(u'CompanyName', u'Lost Ark Market Online'), | ||
StringStruct(u'FileDescription', u'Lost Ark Market Online Launcher App'), | ||
StringStruct(u'FileVersion', u'1.2.1.1'), | ||
StringStruct(u'InternalName', u'Launcher App'), | ||
StringStruct(u'LegalCopyright', u'© Lost Ark Market Online'), | ||
StringStruct(u'OriginalFilename', u'lamo-launcher.exe'), | ||
StringStruct(u'ProductName', u'Lost Ark Market Online Launcher App'), | ||
StringStruct(u'ProductVersion', u'1.2.1.1')]) | ||
]), | ||
VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Version: 1.1.0 | ||
CompanyName: Lost Ark Market Online | ||
FileDescription: Lost Ark Market Online Launcher App | ||
InternalName: Launcher App | ||
LegalCopyright: © Lost Ark Market Online | ||
OriginalFilename: lamo-launcher.exe | ||
ProductName: Lost Ark Market Online Launcher App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import threading | ||
|
||
class Singleton(type): | ||
_instances = {} | ||
_lock = threading.Lock() | ||
|
||
def __call__(cls, *args, **kwargs): | ||
if cls not in cls._instances: | ||
with cls._lock: | ||
if cls not in cls._instances: | ||
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) | ||
return cls._instances[cls] |
Oops, something went wrong.