Skip to content

Commit

Permalink
Merge branch 'Bump-PyInststaller-to-6.12' of https://github.com/Toufo…
Browse files Browse the repository at this point in the history
…ol/AutoSplit into Bump-PyInststaller-to-6.12
  • Loading branch information
Avasam committed Feb 11, 2025
2 parents 09cd7de + 808445e commit 34698cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@ $arguments = @(
'--onefile',
'--windowed',
'--additional-hooks-dir=Pyinstaller/hooks',
'--icon=res/icon.ico',
'--splash=res/splash.png')
'--icon=res/icon.ico')
if ($IsWindows) {
$arguments += @(
# For now this is broken on Linux because we can't know if the target machine will support it or not
# https://github.com/pyinstaller/pyinstaller/issues/9022
'--splash=res/splash.png'
# Hidden import by winrt.windows.graphics.imaging.SoftwareBitmap.create_copy_from_surface_async
'--hidden-import=winrt.windows.foundation')
}
if ($IsLinux) {
$arguments += @(
# Required on the CI for PyWinCtl
'--hidden-import pynput.keyboard._xorg',
'--hidden-import pynput.mouse._xorg')
}

Start-Process -Wait -NoNewWindow uv -ArgumentList $(@("run", "pyinstaller")+$arguments)
Start-Process -Wait -NoNewWindow uv -ArgumentList $(@('run', 'pyinstaller') + $arguments)

If ($IsLinux) {
Move-Item -Force $PSScriptRoot/../dist/AutoSplit $PSScriptRoot/../dist/AutoSplit.elf
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else {
Write-Host "`nRunning Ruff format ..."
uv run ruff format

$pyrightVersion = $(uv run pyright --version).replace("pyright ", "")
$pyrightVersion = $(uv run pyright --version).replace('pyright ', '')
Write-Host "`nRunning Pyright $pyrightVersion ..."
$Env:PYRIGHT_PYTHON_FORCE_VERSION = $pyrightVersion
uv run pyright src/
Expand Down

0 comments on commit 34698cb

Please sign in to comment.