Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible reasons for termination on installation (Windows) #173

Open
matt-sd-watson opened this issue Dec 9, 2024 · 0 comments
Open

possible reasons for termination on installation (Windows) #173

matt-sd-watson opened this issue Dec 9, 2024 · 0 comments

Comments

@matt-sd-watson
Copy link

I have users who are experiencing a premature termination of our app installation when using the exe on Windows. The users are able to see the following indicators when opening the exe:

Creating virtual environment
Installing test_app 0.22.0

But after approximately 2 minutes, the command prompt window closes.

Could this possibly be related to administrator permissions for individual machines? The exe is able to complete installation on the Windows machine on which it was built, but not on alternative machines.

The exe is distributed in zip format in an attempt to preserve the file permissions.

Here is the script used to create the binary, first by creating a whl file from the python package:

# create the whl distribution first
SCRIPTPATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

python $SCRIPTPATH/setup.py bdist_wheel --dist-dir $SCRIPTPATH/dist
VERSION=$( app -v | cut -d "v" -f 2 )

export PYAPP_PROJECT_NAME="app"
export PYAPP_PROJECT_DEPENDENCY_FILE="$SCRIPTPATH/requirements.txt"
export PYAPP_PROJECT_VERSION=$VERSION
export PYAPP_EXEC_SPEC="app.wsgi:main"
export PYAPP_PROJECT_PATH="$SCRIPTPATH/dist/app-$VERSION-py3-none-any.whl"
export PYAPP_PYTHON_VERSION=3.10
export PYAPP_EXE_NAME="app"

cd ../pyapp-latest && cargo build --release
mv target/release/pyapp.exe app_$VERSION.exe && chmod 777 app_$VERSION.exe && chmod 777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant