Deploy script for Windows
This commit is contained in:
39
deploy/Linux/artemis3.svg
Normal file
39
deploy/Linux/artemis3.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 36 KiB |
BIN
deploy/Windows/artemis3.ico
Normal file
BIN
deploy/Windows/artemis3.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
56
deploy/Windows/deploy_win.bat
Normal file
56
deploy/Windows/deploy_win.bat
Normal file
@@ -0,0 +1,56 @@
|
||||
@echo off
|
||||
REM Check and gain admin permissions
|
||||
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
|
||||
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
|
||||
) ELSE (
|
||||
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
|
||||
)
|
||||
|
||||
if '%errorlevel%' NEQ '0' (
|
||||
echo Requesting administrative privileges...
|
||||
goto UACPrompt
|
||||
) else ( goto gotAdmin )
|
||||
|
||||
:UACPrompt
|
||||
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
|
||||
set params= %*
|
||||
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
|
||||
|
||||
"%temp%\getadmin.vbs"
|
||||
del "%temp%\getadmin.vbs"
|
||||
exit /B
|
||||
|
||||
:gotAdmin
|
||||
pushd "%CD%"
|
||||
CD /D "%~dp0"
|
||||
|
||||
REM Set the correct permissions for Artemis folder
|
||||
set artemis_path=%~dp0..\..
|
||||
icacls "%artemis_path%" /grant %USERNAME%:(OI)(CI)F /T > nul
|
||||
|
||||
REM Download necessary libraries with pip3
|
||||
set choice=Y
|
||||
set /p choice=Download necessary Python libraries? [Y]/N
|
||||
if /I '%choice%'=='Y' pip3 install -r %~dp0requirements_win.txt
|
||||
echo:
|
||||
|
||||
REM Create a shortcut
|
||||
set choice=Y
|
||||
set /p choice=Create a desktop shortcut? [Y]/N
|
||||
if /I '%choice%'=='N' goto end
|
||||
|
||||
ren "%artemis_path%\Artemis.py" "Artemis.pyw"
|
||||
echo Set oWS = WScript.CreateObject("WScript.Shell") > CreateShortcut.vbs
|
||||
echo sLinkFile = "%USERPROFILE%\Desktop\Artemis.lnk" >> CreateShortcut.vbs
|
||||
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> CreateShortcut.vbs
|
||||
echo oLink.TargetPath = "%artemis_path%\Artemis.pyw" >> CreateShortcut.vbs
|
||||
echo oLink.WorkingDirectory = "%artemis_path%" >> CreateShortcut.vbs
|
||||
echo oLink.IconLocation = "%~dp0artemis3.ico" >> CreateShortcut.vbs
|
||||
echo oLink.Save >> CreateShortcut.vbs
|
||||
cscript /nologo CreateShortcut.vbs
|
||||
del CreateShortcut.vbs
|
||||
:end
|
||||
echo:
|
||||
echo SETTING COMPLETE!
|
||||
echo:
|
||||
pause
|
||||
36
deploy/Windows/requirements_win.txt
Normal file
36
deploy/Windows/requirements_win.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
aiohttp==3.5.4
|
||||
altgraph==0.16.1
|
||||
asn1crypto==0.24.0
|
||||
async-timeout==3.0.1
|
||||
attrs==19.1.0
|
||||
certifi==2019.3.9
|
||||
cffi==1.11.5
|
||||
chardet==3.0.4
|
||||
cryptography==2.3.1
|
||||
Cython==0.29.6
|
||||
future==0.16.0
|
||||
idna==2.7
|
||||
intel-openmp==2019.0
|
||||
macholib==1.11
|
||||
multidict==4.5.2
|
||||
numpy==1.15.2
|
||||
pandas==0.23.4
|
||||
pefile==2018.8.8
|
||||
pycparser==2.19
|
||||
pydub==0.23.0
|
||||
pygame==1.9.4
|
||||
PyInstaller==3.4
|
||||
pyOpenSSL==18.0.0
|
||||
PyQt5==5.10.1
|
||||
PySocks==1.6.8
|
||||
python-dateutil==2.7.3
|
||||
pytz==2018.5
|
||||
pywin32-ctypes==0.2.0
|
||||
QtAwesome==0.5.0
|
||||
QtPy==1.5.1
|
||||
sip==4.19.8
|
||||
six==1.11.0
|
||||
urllib3==1.24
|
||||
win-inet-pton==1.0.1
|
||||
wincertstore==0.2
|
||||
yarl==1.3.0
|
||||
Reference in New Issue
Block a user