mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
Exclude windows from update packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
from sys import exit, executable, prefix, exec_prefix
|
from sys import exit, prefix
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from subprocess import check_call, run, CalledProcessError, PIPE, check_output
|
from subprocess import check_call, run, CalledProcessError, PIPE, check_output
|
||||||
from platform import python_version, python_version_tuple
|
from platform import python_version, python_version_tuple
|
||||||
@@ -42,6 +42,8 @@ class Install:
|
|||||||
# Sinon tester les dependances python et les installer avec pip
|
# Sinon tester les dependances python et les installer avec pip
|
||||||
if self.do_install():
|
if self.do_install():
|
||||||
|
|
||||||
|
self.check_packages_version()
|
||||||
|
|
||||||
self.install_dependencies()
|
self.install_dependencies()
|
||||||
|
|
||||||
self.create_service_file()
|
self.create_service_file()
|
||||||
@@ -81,8 +83,6 @@ class Install:
|
|||||||
# If the Python version is not good then Exit
|
# If the Python version is not good then Exit
|
||||||
exit("/!\\ Python version error /!\\")
|
exit("/!\\ Python version error /!\\")
|
||||||
|
|
||||||
self.check_packages_version()
|
|
||||||
|
|
||||||
if not os.path.exists(os.path.join(self.config.defender_install_folder, 'core', 'configuration.json')):
|
if not os.path.exists(os.path.join(self.config.defender_install_folder, 'core', 'configuration.json')):
|
||||||
# If configuration file do not exist
|
# If configuration file do not exist
|
||||||
exit("/!\\ Configuration file (core/configuration.json) doesn't exist /!\\")
|
exit("/!\\ Configuration file (core/configuration.json) doesn't exist /!\\")
|
||||||
|
|||||||
Reference in New Issue
Block a user