[10fab78] | 1 | C: |
---|
| 2 | cd \Users\Docker\Downloads |
---|
| 3 | mkdir setup |
---|
| 4 | |
---|
| 5 | rem creamos directorio setup, nos bajamos cosas y mas tarde lo borramos |
---|
| 6 | rem pero el VC_redist hace falta para el empaquetado, asi que lo descargamos fuera de setup para no borrarlo |
---|
| 7 | |
---|
| 8 | curl https://www.python.org/ftp/python/3.12.3/amd64/core.msi --output setup\core.msi |
---|
| 9 | curl https://www.python.org/ftp/python/3.12.3/amd64/dev.msi --output setup\dev.msi |
---|
| 10 | curl https://www.python.org/ftp/python/3.12.3/amd64/exe.msi --output setup\exe.msi |
---|
| 11 | curl https://www.python.org/ftp/python/3.12.3/amd64/lib.msi --output setup\lib.msi |
---|
| 12 | curl https://www.python.org/ftp/python/3.12.3/amd64/path.msi --output setup\path.msi |
---|
| 13 | curl https://www.python.org/ftp/python/3.12.3/amd64/pip.msi --output setup\pip.msi |
---|
| 14 | curl https://aka.ms/vs/17/release/vc_redist.x64.exe --location --output VC_redist.x64.exe |
---|
| 15 | curl https://prdownloads.sourceforge.net/nsis/nsis-3.05-setup.exe?download --location --output setup\nsis-install.exe |
---|
| 16 | curl http://nsis.sourceforge.net/mediawiki/images/d/d7/NSIS_Simple_Firewall_Plugin_1.20.zip --location --output setup\NSIS_Simple_Firewall_Plugin_1.20.zip |
---|
| 17 | |
---|
| 18 | cd setup |
---|
| 19 | msiexec /i core.msi TARGETDIR=C:\Python312 |
---|
| 20 | msiexec /i dev.msi TARGETDIR=C:\Python312 |
---|
| 21 | msiexec /i exe.msi TARGETDIR=C:\Python312 |
---|
| 22 | msiexec /i lib.msi TARGETDIR=C:\Python312 |
---|
| 23 | msiexec /i path.msi TARGETDIR=C:\Python312 |
---|
| 24 | msiexec /i pip.msi TARGETDIR=C:\Python312 |
---|
| 25 | cd .. |
---|
| 26 | VC_redist.x64.exe /install /quiet /passive /norestart |
---|
| 27 | |
---|
| 28 | ftype PythonScript=C:\Python312\python.exe "%1" %* |
---|
| 29 | assoc .py=PythonScript |
---|
| 30 | PATH=C:\Python312;C:\Python312\Scripts;%PATH% |
---|
| 31 | setx PATH "C:\Python312;C:\Python312\Scripts;%PATH%" |
---|
| 32 | |
---|
| 33 | python -m pip install --upgrade wheel pip |
---|
| 34 | pip install -r F:\src\requirements.txt |
---|
| 35 | |
---|
| 36 | setup\nsis-install.exe |
---|
| 37 | |
---|
| 38 | powershell -command "Expand-Archive setup\NSIS_Simple_Firewall_Plugin_1.20.zip nsis-fp" |
---|
| 39 | copy nsis-fp\SimpleFC.dll "C:\Program Files (x86)\NSIS\Plugins\x86-ansi\" |
---|
| 40 | copy nsis-fp\SimpleFC.dll "C:\Program Files (x86)\NSIS\Plugins\x86-unicode\" |
---|
| 41 | rmdir nsis-fp /s /q |
---|
| 42 | |
---|
| 43 | rmdir setup /s /q |
---|