mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Update Windows installer scripts
This commit is contained in:
12
README.md
12
README.md
@@ -181,17 +181,9 @@ pyinstaller dyn2py.spec
|
||||
### Create installer for Windows
|
||||
|
||||
- Install Inno Setup: https://jrsoftware.org/isdl.php
|
||||
- The already built exe should be in the root folder
|
||||
- Run this in powershell:
|
||||
- Build an exe
|
||||
- Run `dyn2py-installer.ps1` in powershell
|
||||
|
||||
```powershell
|
||||
# Read version number from pyproject.toml and update in innosetup:
|
||||
$regex = Select-String -Path pyproject.toml -Pattern '^version = "((?:\d\.){2}\d)"$'
|
||||
$version = $regex.Matches.Groups[1].Value
|
||||
(Get-Content dyn2py-installer.iss).Replace("x.x.x",$version) | Set-Content dyn2py-installer.iss
|
||||
# Build:
|
||||
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -Qp $(Join-Path $PWD.Path dyn2py-installer.iss)
|
||||
```
|
||||
### Live module documentation
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user