Skip to content

v2.0.1.5

v2.0.1.5 #27

Workflow file for this run

name: legacy-checks
on:
push:
branches: [ main, WIP ]
pull_request:
branches: [ main, WIP ]
jobs:
build-check-legacy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Executable
run: |
python.exe -m nuitka --quiet --follow-imports --assume-yes-for-downloads --remove-output --onefile --output-filename=py-shield-legacy --windows-icon-from-ico=icon.ico --company-name="ByteCorum" --product-name="Py-Shield legacy" --file-version=1.0.0.0 --product-version=1.0.0.0 --file-description="Program/Library for Python created to protect your code from decompilation and detection by antiviruses" --copyright="https://github.com/ByteCorum/Py-Shield/blob/main/LICENSE" py-shield-legacy/py-shield-legacy.py
- name: Archive Executable
uses: actions/upload-artifact@v4
with:
name: py-shield-legacy-executable
path: "py-shield-legacy.exe"
obfuscation-test-legacy:
needs: build-check-legacy
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Download Executable
uses: actions/download-artifact@v4
with:
name: py-shield-legacy-executable
path: ""
- name: Prepare For Tests
run: |
move "py-shield-legacy.exe" "examples/multifile-legacy"
Remove-Item -Path "examples\multifile-legacy\obfuscated" -Recurse -Force
- name: Obfuscate
working-directory: examples\multifile-legacy
run: |
.\py-shield-legacy.exe --loops 3 --mode 4 --output obfuscated --file "main.py;lib.py"
- name: Testing
working-directory: examples\multifile-legacy\obfuscated
run: |
$OUTPUT = $(python main.py)
Write-Host "Output: "
Write-Host $OUTPUT
Write-Host "Result: "
if ($OUTPUT -eq "hello world") {
Write-Host "Success: main.py output contains 'hello world'"
} else {
Write-Host "Failure: main.py output does not contain 'hello world'"
exit 1
}