mirror of
https://github.com/JDM170/comp_auto_restart
synced 2024-10-25 13:43:54 +07:00
Remove unnessesary files, update .gitignore, add README.md
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@ __pycache__
|
||||
build
|
||||
dist
|
||||
upx
|
||||
venv
|
||||
*.spec
|
||||
19
README.md
Normal file
19
README.md
Normal file
@@ -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
|
||||
```
|
||||
40
build.spec
40
build.spec
@@ -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)
|
||||
Reference in New Issue
Block a user