Skip to content

Commit

Permalink
- trying to "solve" #60 (third attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAlsFake committed Nov 16, 2024
1 parent 5fb9950 commit 1d6fe32
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
30 changes: 27 additions & 3 deletions src/build/pysidedeploy_windows.spec
Original file line number Diff line number Diff line change
@@ -1,71 +1,95 @@
[app]

# title of your application
title = Porn Fetch

# project directory. the general assumption is that project_dir is the parent directory
# of input_file
project_dir = .

# source file path
input_file =

# directory where exec is stored
exec_directory = .

# path to .pyproject project file
project_file =

# application icon
icon = src/frontend/graphics/logo_transparent.ico

[python]

# python path
python_path =

# python packages to install
# ordered-set = increase compile time performance of nuitka packaging
# zstandard = provides final executable size optimization
packages = Nuitka==2.3.7

# buildozer = for deploying Android application
android_packages = buildozer==1.5.0,cython==0.29.33

[qt]

# comma separated path to qml files required
# normally all the qml files required by the project are added automatically
qml_files =

# excluded qml plugin binaries
excluded_qml_plugins =

# qt modules used. comma separated
modules = Gui,DBus,Core,Widgets
modules = Core,Widgets,Gui

# qt plugins used by the application
plugins = egldeviceintegrations,iconengines,platforms/darwin,xcbglintegrations,imageformats,platforms,platformthemes,styles,platforminputcontexts,accessiblebridge,generic

[android]

# path to pyside wheel
wheel_pyside =

# path to shiboken wheel
wheel_shiboken =

# plugins to be copied to libs folder of the packaged application. comma separated
plugins =

[nuitka]

# usage description for permissions requested by the app as found in the info.plist file
# of the app bundle
# eg = extra_args = --show-modules --follow-stdlib
macos.permissions =

# (str) specify any extra nuitka arguments
extra_args = --quiet --noinclude-qt-translations
extra_args = --quiet --noinclude-qt-translations --assume-yes-for-downloads

[buildozer]

# build mode
# possible options = [release, debug]
# release creates an aab, while debug creates an apk
mode = debug

# contrains path to pyside6 and shiboken6 recipe dir
recipe_dir =

# path to extra qt android jars to be loaded by the application
jars_dir =

# if empty uses default ndk path downloaded by buildozer
ndk_path =

# if empty uses default sdk path downloaded by buildozer
sdk_path =

# other libraries to be loaded. comma separated.
# loaded at app startup
local_libs =

# architecture of deployed platform
# possible values = ["aarch64", "armv7a", "i686", "x86_64"]
arch =
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/install_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ Set-Location -Path $projectDir
py -m venv ..\venv\
..\venv\Scripts\activate.ps1
pip install -r requirements.txt
echo -e "Yes\nYes" | pyside6-deploy main.py -c src/build/pysidedeploy_windows.spec -f -v
$env:NUITKA_ASSUME_YES_FOR_DOWNLOADS = "1"
Write-Host "NUITKA_ASSUME_YES_FOR_DOWNLOADS is set to $env:NUITKA_ASSUME_YES_FOR_DOWNLOADS"
pyside6-deploy main.py -c src/build/pysidedeploy_windows.spec -f -v

# Move the final executable to the user's Desktop
$finalExePath = Join-Path -Path $projectDir -ChildPath "main.exe"
Expand Down

0 comments on commit 1d6fe32

Please sign in to comment.