mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-10-31 22:05:58 +00:00
Centralized version information in core_* package so that they only live at one place (instead of several).
--HG-- rename : cocoa/me/Info.plist => cocoa/me/InfoTemplate.plist rename : cocoa/pe/Info.plist => cocoa/pe/InfoTemplate.plist rename : cocoa/se/Info.plist => cocoa/se/InfoTemplate.plist
This commit is contained in:
parent
d139157234
commit
e6e4e14781
6
build.py
6
build.py
@ -16,7 +16,8 @@ from setuptools import setup
|
|||||||
from distutils.extension import Extension
|
from distutils.extension import Extension
|
||||||
|
|
||||||
from hscommon import sphinxgen
|
from hscommon import sphinxgen
|
||||||
from hscommon.build import (add_to_pythonpath, print_and_do, copy_packages, ensure_empty_folder)
|
from hscommon.build import (add_to_pythonpath, print_and_do, copy_packages, ensure_empty_folder,
|
||||||
|
filereplace, get_module_version)
|
||||||
|
|
||||||
def build_cocoa(edition, dev):
|
def build_cocoa(edition, dev):
|
||||||
print("Building dg_cocoa.plugin")
|
print("Building dg_cocoa.plugin")
|
||||||
@ -47,6 +48,9 @@ def build_cocoa(edition, dev):
|
|||||||
pthpath = op.join(pluginpath, 'Contents/Resources/dev.pth')
|
pthpath = op.join(pluginpath, 'Contents/Resources/dev.pth')
|
||||||
open(pthpath, 'w').write(op.abspath('.'))
|
open(pthpath, 'w').write(op.abspath('.'))
|
||||||
os.chdir(cocoa_project_path)
|
os.chdir(cocoa_project_path)
|
||||||
|
print('Generating Info.plist')
|
||||||
|
app_version = get_module_version('core_{}'.format(edition))
|
||||||
|
filereplace('InfoTemplate.plist', 'Info.plist', version=app_version)
|
||||||
print("Building the XCode project")
|
print("Building the XCode project")
|
||||||
args = []
|
args = []
|
||||||
if dev:
|
if dev:
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>hsft</string>
|
<string>hsft</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>5.10.4</string>
|
<string>{version}</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>MainMenu</string>
|
<string>MainMenu</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
@ -23,7 +23,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>hsft</string>
|
<string>hsft</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.11.3</string>
|
<string>{version}</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>MainMenu</string>
|
<string>MainMenu</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
@ -23,7 +23,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>hsft</string>
|
<string>hsft</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>2.12.3</string>
|
<string>{version}</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>MainMenu</string>
|
<string>MainMenu</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
@ -0,0 +1 @@
|
|||||||
|
__version__ = '5.10.4'
|
@ -0,0 +1 @@
|
|||||||
|
__version__ = '1.11.3'
|
@ -6,7 +6,7 @@
|
|||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from core_me import data, scanner, fs
|
from core_me import data, scanner, fs, __version__
|
||||||
|
|
||||||
from ..base.app import DupeGuru as DupeGuruBase
|
from ..base.app import DupeGuru as DupeGuruBase
|
||||||
from .details_dialog import DetailsDialog
|
from .details_dialog import DetailsDialog
|
||||||
@ -17,7 +17,7 @@ class DupeGuru(DupeGuruBase):
|
|||||||
EDITION = 'me'
|
EDITION = 'me'
|
||||||
LOGO_NAME = 'logo_me'
|
LOGO_NAME = 'logo_me'
|
||||||
NAME = 'dupeGuru Music Edition'
|
NAME = 'dupeGuru Music Edition'
|
||||||
VERSION = '5.10.4'
|
VERSION = __version__
|
||||||
DELTA_COLUMNS = frozenset([2, 3, 4, 5, 7])
|
DELTA_COLUMNS = frozenset([2, 3, 4, 5, 7])
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -14,8 +14,7 @@ from PyQt4.QtGui import QImage, QImageReader
|
|||||||
from hscommon.util import get_file_ext
|
from hscommon.util import get_file_ext
|
||||||
|
|
||||||
from core import fs
|
from core import fs
|
||||||
from core_pe import data as data_pe
|
from core_pe import data as data_pe, __version__
|
||||||
from core_pe.cache import Cache
|
|
||||||
from core_pe.scanner import ScannerPE
|
from core_pe.scanner import ScannerPE
|
||||||
|
|
||||||
from ..base.app import DupeGuru as DupeGuruBase
|
from ..base.app import DupeGuru as DupeGuruBase
|
||||||
@ -60,7 +59,7 @@ class DupeGuru(DupeGuruBase):
|
|||||||
EDITION = 'pe'
|
EDITION = 'pe'
|
||||||
LOGO_NAME = 'logo_pe'
|
LOGO_NAME = 'logo_pe'
|
||||||
NAME = 'dupeGuru Picture Edition'
|
NAME = 'dupeGuru Picture Edition'
|
||||||
VERSION = '1.11.3'
|
VERSION = __version__
|
||||||
DELTA_COLUMNS = frozenset([2, 5])
|
DELTA_COLUMNS = frozenset([2, 5])
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -27,7 +27,7 @@ class DupeGuru(DupeGuruBase):
|
|||||||
EDITION = 'se'
|
EDITION = 'se'
|
||||||
LOGO_NAME = 'logo_se'
|
LOGO_NAME = 'logo_se'
|
||||||
NAME = 'dupeGuru'
|
NAME = 'dupeGuru'
|
||||||
VERSION = '2.12.3'
|
VERSION = __version__
|
||||||
DELTA_COLUMNS = frozenset([2, 4])
|
DELTA_COLUMNS = frozenset([2, 4])
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user