Files
Abdurrahman Kaan DikeçandClaude Opus 5.5 68197f0bd6 Merge origin/main (the Magisk zip's computer side, #246, and others) into fbe-reset-resume
Both sides kept: install.sh/install.ps1 take --package and --resume/--no-resume/--transaction; no
self-update from a package or while a transaction waits; tools/resume.sh and tools/resume.py go
into the zip's computer/ (files.txt). A test makes room from an unpacked zip and resumes with the
same zip after the reset; another zip or a copy of the project is refused (the payload identity).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-15 22:31:20 +03:00

36 lines
1.9 KiB
YAML

name: Installer checks
# The installers' translations (i18n/*.tsv) against the messages the scripts use, and the scripts' syntax -
# install.ps1 with the PowerShell parser, since a construct Windows PowerShell 5.1 cannot parse only shows up there.
on:
push:
branches: [main]
paths: ['install.sh', 'install.ps1', 'uninstall.sh', 'uninstall.ps1', 'tools/*.sh', 'tools/*.ps1', 'tools/check-i18n.py', 'i18n/**', 'gui/**', '.github/workflows/installer.yml', 'android/magisk/**']
pull_request:
paths: ['install.sh', 'install.ps1', 'uninstall.sh', 'uninstall.ps1', 'tools/*.sh', 'tools/*.ps1', 'tools/check-i18n.py', 'i18n/**', 'gui/**', 'android/magisk/**']
permissions:
contents: read
jobs:
check:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Translations
shell: bash
run: python tools/check-i18n.py
- name: Shell syntax
shell: bash
run: for f in install.sh uninstall.sh tools/i18n.sh tools/self-update.sh tools/linux-mode.sh tools/answers.sh tools/releases.sh tools/gui-launch.sh tools/package.sh tools/resume.sh android/magisk/computer/start.sh android/magisk/computer/start-gui.sh android/magisk/computer/uninstall-linux.sh android/magisk/installer/mu300-install.sh android/magisk/installer/customize.sh tools/android-boot-image.sh tools/make-magisk-zips.sh; do sh -n "$f"; done
- name: PowerShell 5.1 parse
shell: powershell
run: |
$bad = 0
foreach ($f in 'install.ps1', 'uninstall.ps1', 'tools/answers.ps1', 'tools/gui-launch.ps1', 'tests/installer.Tests.ps1', 'tests/answers.Tests.ps1') {
$e = $null
[System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path $f), [ref]$null, [ref]$e) | Out-Null
foreach ($x in $e) { Write-Host "$f line $($x.Extent.StartLineNumber): $($x.Message)"; $bad++ }
}
if ($bad) { exit 1 }