mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-01 11:12:24 +02:00
Compare commits
1 commit
44a57d3d66
...
3e229802af
Author | SHA1 | Date | |
---|---|---|---|
3e229802af |
9 changed files with 26 additions and 7 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -33,6 +33,8 @@ jobs:
|
||||||
version: "20.04"
|
version: "20.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "22.04"
|
version: "22.04"
|
||||||
|
- distro: ubuntu
|
||||||
|
version: "23.10"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "24.04"
|
version: "24.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
|
|
2
.github/workflows/check_repos.yml
vendored
2
.github/workflows/check_repos.yml
vendored
|
@ -23,6 +23,8 @@ jobs:
|
||||||
version: "24.10" # oracular
|
version: "24.10" # oracular
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "24.04" # noble
|
version: "24.04" # noble
|
||||||
|
- distro: ubuntu
|
||||||
|
version: "23.10" # mantic
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "22.04" # jammy
|
version: "22.04" # jammy
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
|
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -159,6 +159,8 @@ jobs:
|
||||||
version: "20.04"
|
version: "20.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "22.04"
|
version: "22.04"
|
||||||
|
- distro: ubuntu
|
||||||
|
version: "23.10"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "24.04"
|
version: "24.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
|
@ -227,6 +229,8 @@ jobs:
|
||||||
version: "20.04"
|
version: "20.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "22.04"
|
version: "22.04"
|
||||||
|
- distro: ubuntu
|
||||||
|
version: "23.10"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "24.04"
|
version: "24.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
|
@ -346,6 +350,8 @@ jobs:
|
||||||
version: "20.04"
|
version: "20.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "22.04"
|
version: "22.04"
|
||||||
|
- distro: ubuntu
|
||||||
|
version: "23.10"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
version: "24.04"
|
version: "24.04"
|
||||||
- distro: ubuntu
|
- distro: ubuntu
|
||||||
|
|
|
@ -11,6 +11,7 @@ an isolated environment. It will be installed automatically when installing Dang
|
||||||
Dangerzone is available for:
|
Dangerzone is available for:
|
||||||
- Ubuntu 24.10 (oracular)
|
- Ubuntu 24.10 (oracular)
|
||||||
- Ubuntu 24.04 (noble)
|
- Ubuntu 24.04 (noble)
|
||||||
|
- Ubuntu 23.10 (mantic)
|
||||||
- Ubuntu 22.04 (jammy)
|
- Ubuntu 22.04 (jammy)
|
||||||
- Ubuntu 20.04 (focal)
|
- Ubuntu 20.04 (focal)
|
||||||
- Debian 13 (trixie)
|
- Debian 13 (trixie)
|
||||||
|
|
|
@ -142,6 +142,9 @@ runsc_argv = [
|
||||||
"--rootless=true",
|
"--rootless=true",
|
||||||
"--network=none",
|
"--network=none",
|
||||||
"--root=/home/dangerzone/.containers",
|
"--root=/home/dangerzone/.containers",
|
||||||
|
# Disable DirectFS for to make the seccomp filter even stricter,
|
||||||
|
# at some performance cost.
|
||||||
|
"--directfs=false",
|
||||||
]
|
]
|
||||||
if os.environ.get("RUNSC_DEBUG"):
|
if os.environ.get("RUNSC_DEBUG"):
|
||||||
runsc_argv += ["--debug=true", "--alsologtostderr=true"]
|
runsc_argv += ["--debug=true", "--alsologtostderr=true"]
|
||||||
|
|
|
@ -696,6 +696,8 @@ class Env:
|
||||||
DOCKERFILE_CONMON_UPDATE + DOCKERFILE_BUILD_DEV_DEBIAN_DEPS
|
DOCKERFILE_CONMON_UPDATE + DOCKERFILE_BUILD_DEV_DEBIAN_DEPS
|
||||||
)
|
)
|
||||||
elif self.distro == "ubuntu" and self.version in (
|
elif self.distro == "ubuntu" and self.version in (
|
||||||
|
"23.10",
|
||||||
|
"mantic",
|
||||||
"24.04",
|
"24.04",
|
||||||
"noble",
|
"noble",
|
||||||
"24.10",
|
"24.10",
|
||||||
|
@ -782,6 +784,8 @@ class Env:
|
||||||
# package (see https://github.com/freedomofpress/dangerzone/issues/685)
|
# package (see https://github.com/freedomofpress/dangerzone/issues/685)
|
||||||
install_deps = DOCKERFILE_CONMON_UPDATE + DOCKERFILE_BUILD_DEBIAN_DEPS
|
install_deps = DOCKERFILE_CONMON_UPDATE + DOCKERFILE_BUILD_DEBIAN_DEPS
|
||||||
elif self.distro == "ubuntu" and self.version in (
|
elif self.distro == "ubuntu" and self.version in (
|
||||||
|
"23.10",
|
||||||
|
"mantic",
|
||||||
"24.04",
|
"24.04",
|
||||||
"noble",
|
"noble",
|
||||||
"24.10",
|
"24.10",
|
||||||
|
|
|
@ -978,6 +978,11 @@ class QAUbuntu2204(QADebianBased):
|
||||||
VERSION = "22.04"
|
VERSION = "22.04"
|
||||||
|
|
||||||
|
|
||||||
|
class QAUbuntu2310(QADebianBased):
|
||||||
|
DISTRO = "ubuntu"
|
||||||
|
VERSION = "23.10"
|
||||||
|
|
||||||
|
|
||||||
class QAUbuntu2404(QADebianBased):
|
class QAUbuntu2404(QADebianBased):
|
||||||
DISTRO = "ubuntu"
|
DISTRO = "ubuntu"
|
||||||
VERSION = "24.04"
|
VERSION = "24.04"
|
||||||
|
|
|
@ -4,6 +4,7 @@ from cx_Freeze import Executable, setup
|
||||||
with open("share/version.txt") as f:
|
with open("share/version.txt") as f:
|
||||||
version = f.read().strip()
|
version = f.read().strip()
|
||||||
|
|
||||||
|
packages = ["dangerzone", "dangerzone.gui"]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="dangerzone",
|
name="dangerzone",
|
||||||
|
@ -11,13 +12,10 @@ setup(
|
||||||
# On Windows description will show as the app's name in the "Open With" menu. See:
|
# On Windows description will show as the app's name in the "Open With" menu. See:
|
||||||
# https://github.com/freedomofpress/dangerzone/issues/283#issuecomment-1365148805
|
# https://github.com/freedomofpress/dangerzone/issues/283#issuecomment-1365148805
|
||||||
description="Dangerzone",
|
description="Dangerzone",
|
||||||
|
packages=packages,
|
||||||
options={
|
options={
|
||||||
"build_exe": {
|
"build_exe": {
|
||||||
# Explicitly specify pymupdf.util module to fix building the executables
|
"packages": packages,
|
||||||
# with cx_freeze. See https://github.com/marcelotduarte/cx_Freeze/issues/2653
|
|
||||||
# for more details.
|
|
||||||
# TODO: Upgrade to cx_freeze 7.3.0 which should include a fix.
|
|
||||||
"packages": ["dangerzone", "dangerzone.gui", "pymupdf.utils"],
|
|
||||||
"excludes": ["test", "tkinter"],
|
"excludes": ["test", "tkinter"],
|
||||||
"include_files": [("share", "share"), ("LICENSE", "LICENSE")],
|
"include_files": [("share", "share"), ("LICENSE", "LICENSE")],
|
||||||
"include_msvcr": True,
|
"include_msvcr": True,
|
||||||
|
|
|
@ -164,7 +164,6 @@ class IsolationProviderTermination:
|
||||||
terminate_proc_mock = mocker.patch.object(
|
terminate_proc_mock = mocker.patch.object(
|
||||||
provider, "terminate_doc_to_pixels_proc", return_value=None
|
provider, "terminate_doc_to_pixels_proc", return_value=None
|
||||||
)
|
)
|
||||||
kill_pg_orig = base.kill_process_group
|
|
||||||
kill_pg_mock = mocker.patch(
|
kill_pg_mock = mocker.patch(
|
||||||
"dangerzone.isolation_provider.base.kill_process_group", return_value=None
|
"dangerzone.isolation_provider.base.kill_process_group", return_value=None
|
||||||
)
|
)
|
||||||
|
@ -179,7 +178,6 @@ class IsolationProviderTermination:
|
||||||
|
|
||||||
# Reset the function to the original state.
|
# Reset the function to the original state.
|
||||||
provider.terminate_doc_to_pixels_proc = terminate_proc_orig # type: ignore [method-assign]
|
provider.terminate_doc_to_pixels_proc = terminate_proc_orig # type: ignore [method-assign]
|
||||||
base.kill_process_group = kill_pg_orig
|
|
||||||
|
|
||||||
# Really kill the spawned process, so that it doesn't linger after the tests
|
# Really kill the spawned process, so that it doesn't linger after the tests
|
||||||
# complete.
|
# complete.
|
||||||
|
|
Loading…
Reference in a new issue