From 3a71eb9fdbfccda6b968739cd4321e2af5f52fd7 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Mon, 29 Aug 2022 23:10:10 +0700 Subject: [PATCH] Remove unnessesary files, update .gitignore, add README.md Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- .gitignore | 2 ++ README.md | 19 +++++++++++++++++++ build.bat | 2 -- build.spec | 40 ---------------------------------------- 4 files changed, 21 insertions(+), 42 deletions(-) create mode 100644 README.md delete mode 100644 build.bat delete mode 100644 build.spec diff --git a/.gitignore b/.gitignore index 0625034..db89bba 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ __pycache__ build dist upx +venv +*.spec \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..20e5c0a --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Перезагрузка компьютеров из списка через 60 секунд +Использовано: +- Python 3.10.2 +- Pyinstaller 4.10 +- Немножечко мозгов и скилла + +--- + +Запуск: +``` +python main.py +``` + +--- + +Сборка: +``` +pyinstaller --clean --console --onefile --upx-dir=upx\ --name comp_auto_restart main.py +``` diff --git a/build.bat b/build.bat deleted file mode 100644 index 39c35df..0000000 --- a/build.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -pyinstaller build.spec --upx-dir=upx\ diff --git a/build.spec b/build.spec deleted file mode 100644 index a4715b5..0000000 --- a/build.spec +++ /dev/null @@ -1,40 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - - -block_cipher = None - - -a = Analysis(['main.py'], - pathex=[], - binaries=[], - datas=[], - hiddenimports=[], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - win_no_prefer_redirects=False, - win_private_assemblies=False, - cipher=block_cipher, - noarchive=False) -pyz = PYZ(a.pure, a.zipped_data, - cipher=block_cipher) - -exe = EXE(pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - [], - name='Scheduled computer restart', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=True, - disable_windowed_traceback=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None)