mirror of
https://github.com/indetectables-net/toolkit.git
synced 2026-10-28 19:40:47 +00:00
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
name: Builder
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-job:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: src
|
|
|
|
- name: Install Python packages
|
|
run: pip install py7zr pefile colorama
|
|
|
|
- name: Update .iss config paths
|
|
working-directory: ./src/bin/installer/full
|
|
shell: pwsh
|
|
run: |
|
|
$srcDirReplacement = '#define MySrcDir "' + "${{ github.workspace }}/src".Replace('\', '\\') + '"'
|
|
$outDirReplacement = '#define MyOutputDir "' + "${{ github.workspace }}".Replace('\', '\\') + '"'
|
|
$content = Get-Content -Path setup.iss -Raw
|
|
$content = $content -replace '#define MySrcDir "C:\\\\code\\\\toolkit"', $srcDirReplacement
|
|
$content = $content -replace '#define MyOutputDir "C:\\\\code"', $outDirReplacement
|
|
Set-Content -Path setup.iss -Value $content
|
|
Write-Output $content
|
|
|
|
- name: Prepare directory
|
|
working-directory: ./src/bin/installer
|
|
run: python generate-sections.py -f ${{ github.workspace }}/src/toolkit -o ${{ github.workspace }}/src/bin/installer/full
|
|
|
|
- name: Prepare documents
|
|
working-directory: ./src/bin/installer
|
|
run: ./build-docs.bat
|
|
|
|
- name: Build installer
|
|
working-directory: ./src/bin/installer/full
|
|
run: ISCC.exe setup.iss /DMySrcDir="${{ github.workspace }}/src" /DMyOutputDir="${{ github.workspace }}"
|
|
|
|
- name: Upload Setup as Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: setup-installer-artifact
|
|
path: ./*.exe
|