mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-03-13 12:01:38 +00:00
Compare commits
7 Commits
8f440603ee
...
4.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e4b41feb5 | |||
|
cbfa8720f1
|
|||
|
a02c5e5b9b
|
|||
|
35e6ffd6af
|
|||
|
e957f840da
|
|||
|
85e22089bd
|
|||
|
b7d68b4458
|
6
.github/workflows/default.yml
vendored
6
.github/workflows/default.yml
vendored
@@ -76,3 +76,9 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pytest core hscommon
|
pytest core hscommon
|
||||||
|
- name: Upload Artifacts
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: modules ${{ matrix.python-version }}
|
||||||
|
path: ${{ github.workspace }}/**/*.so
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -53,7 +53,7 @@ pyc: | env
|
|||||||
${VENV_PYTHON} -m compileall ${packages}
|
${VENV_PYTHON} -m compileall ${packages}
|
||||||
|
|
||||||
reqs:
|
reqs:
|
||||||
ifneq ($(shell test $(PYTHON_VERSION_MINOR) -gt $(REQ_MINOR_VERSION); echo $$?),0)
|
ifneq ($(shell test $(PYTHON_VERSION_MINOR) -ge $(REQ_MINOR_VERSION); echo $$?),0)
|
||||||
$(error "Python 3.${REQ_MINOR_VERSION}+ required. Aborting.")
|
$(error "Python 3.${REQ_MINOR_VERSION}+ required. Aborting.")
|
||||||
endif
|
endif
|
||||||
ifndef NO_VENV
|
ifndef NO_VENV
|
||||||
|
|||||||
@@ -507,7 +507,6 @@ if ISWINDOWS:
|
|||||||
def has_sep(regexp):
|
def has_sep(regexp):
|
||||||
return "\\" + sep in regexp
|
return "\\" + sep in regexp
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def has_sep(regexp):
|
def has_sep(regexp):
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
#import <CoreGraphics/CoreGraphics.h>
|
||||||
|
#import <ImageIO/ImageIO.h>
|
||||||
|
|
||||||
#define RADIANS( degrees ) ( degrees * M_PI / 180 )
|
#define RADIANS( degrees ) ( degrees * M_PI / 180 )
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ try:
|
|||||||
appname = proxy.bundleInfo_("CFBundleName")
|
appname = proxy.bundleInfo_("CFBundleName")
|
||||||
return op.join(base, appname)
|
return op.join(base, appname)
|
||||||
|
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
from PyQt5.QtCore import QUrl, QStandardPaths
|
from PyQt5.QtCore import QUrl, QStandardPaths
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ def format_time_decimal(seconds):
|
|||||||
|
|
||||||
|
|
||||||
SIZE_DESC = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
|
SIZE_DESC = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
|
||||||
SIZE_VALS = tuple(1024 ** i for i in range(1, 9))
|
SIZE_VALS = tuple(1024**i for i in range(1, 9))
|
||||||
|
|
||||||
|
|
||||||
def format_size(size, decimal=0, forcepower=-1, showdesc=True):
|
def format_size(size, decimal=0, forcepower=-1, showdesc=True):
|
||||||
@@ -258,7 +258,7 @@ def format_size(size, decimal=0, forcepower=-1, showdesc=True):
|
|||||||
if decimal == 0:
|
if decimal == 0:
|
||||||
divided_size = ceil(divided_size)
|
divided_size = ceil(divided_size)
|
||||||
else:
|
else:
|
||||||
divided_size = ceil(divided_size * (10 ** decimal)) / (10 ** decimal)
|
divided_size = ceil(divided_size * (10**decimal)) / (10**decimal)
|
||||||
if negative:
|
if negative:
|
||||||
divided_size *= -1
|
divided_size *= -1
|
||||||
result = size_format % divided_size
|
result = size_format % divided_size
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ def package_macos():
|
|||||||
"--osx-bundle-identifier=com.hardcoded-software.dupeguru",
|
"--osx-bundle-identifier=com.hardcoded-software.dupeguru",
|
||||||
"--add-data={0}:locale".format(LOCALE_DIR),
|
"--add-data={0}:locale".format(LOCALE_DIR),
|
||||||
"--add-data={0}:help".format(HELP_DIR),
|
"--add-data={0}:help".format(HELP_DIR),
|
||||||
ENTRY_SCRIPT,
|
"{0}".format(ENTRY_SCRIPT),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Vcs-Git: https://github.com/arsenetar/dupeguru.git
|
|||||||
|
|
||||||
Package: {pkgname}
|
Package: {pkgname}
|
||||||
Architecture: {arch}
|
Architecture: {arch}
|
||||||
Depends: ${shlibs:Depends}, python3 (>=3.4), python3-pyqt5
|
Depends: ${shlibs:Depends}, python3 (>=3.6), python3-pyqt5, python3-mutagen
|
||||||
Provides: dupeguru-se, dupeguru-me, dupeguru-pe
|
Provides: dupeguru-se, dupeguru-me, dupeguru-pe
|
||||||
Replaces: dupeguru-se, dupeguru-me, dupeguru-pe
|
Replaces: dupeguru-se, dupeguru-me, dupeguru-pe
|
||||||
Conflicts: dupeguru-se, dupeguru-me, dupeguru-pe
|
Conflicts: dupeguru-se, dupeguru-me, dupeguru-pe
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ if op.exists(__file__):
|
|||||||
# inside qt/, so we just go back one level.
|
# inside qt/, so we just go back one level.
|
||||||
BASE_PATH = op.abspath(op.join(op.dirname(__file__), ".."))
|
BASE_PATH = op.abspath(op.join(op.dirname(__file__), ".."))
|
||||||
else:
|
else:
|
||||||
# We're under a freezed environment. Our base path is ''.
|
# Should be a frozen environment
|
||||||
|
if ISOSX:
|
||||||
|
BASE_PATH = op.abspath(op.join(op.dirname(__file__), '..', '..', 'Resources'))
|
||||||
|
else:
|
||||||
|
# For others our base path is ''.
|
||||||
BASE_PATH = ""
|
BASE_PATH = ""
|
||||||
HELP_PATH = op.join(BASE_PATH, "help")
|
HELP_PATH = op.join(BASE_PATH, "help")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user