diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 67b49d017..58b95adf2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -267,7 +267,7 @@ This will build the project and start the application in production mode. ## Troubleshooting
-The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. +The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. This error is caused by the [Electron](https://www.electronjs.org/) sandbox not being able to run. This is a security feature and not a bug. You can run the application with the `--no-sandbox` flag to disable this behavior. @@ -277,6 +277,13 @@ yarn start-prod --no-sandbox # Start Session!
+
+Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. + +We use the `python3` command for many of our scripts. If you have installed Python using [Chocolatey](https://chocolatey.org/), you will need to create an alias for `python3` that points to `python`. Alternatively, you can update the scripts to use `python` instead of `python3`. + +
+ ## Hot reloading More often than not, you'll need to restart the application regularly to see your changes, as there diff --git a/package.json b/package.json index 04566d983..8448927cd 100644 --- a/package.json +++ b/package.json @@ -41,8 +41,8 @@ "build-everything:watch": "yarn clean && yarn protobuf && yarn update-git-info && yarn sass && yarn build:locales-soft && yarn build:workers && yarn tsc -w", "start-dev:pretty": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod$MULTI electron . | npx bunyan", "build:workers": "yarn worker:utils && yarn worker:libsession", - "build:locales": "python ./tools/localization/generateLocales.py --generate-types --print-problems --error-on-problems --error-old-dynamic-variables", - "build:locales-soft": "python ./tools/localization/generateLocales.py --generate-types --print-problems --print-problem-strings", + "build:locales": "python3 ./tools/localization/generateLocales.py --generate-types --print-problems --error-on-problems --error-old-dynamic-variables", + "build:locales-soft": "python3 ./tools/localization/generateLocales.py --generate-types --print-problems --print-problem-strings", "watch": "yarn clean && yarn protobuf && yarn update-git-info && yarn build-everything:watch", "protobuf": "pbjs --target static-module --wrap commonjs --out ts/protobuf/compiled.js protos/*.proto && pbts --out ts/protobuf/compiled.d.ts ts/protobuf/compiled.js --force-long", "sass": "rimraf 'stylesheets/dist/' && webpack --config=./sass.config.js", @@ -61,7 +61,7 @@ "worker:libsession": "rimraf 'ts/webworker/workers/node/libsession/*.node' && webpack --config=./libsession.worker.config.js", "dedup-yarn-lock": "npx --yes yarn-deduplicate yarn.lock", "prepare": "husky install", - "print-deps": "node -v && python --version" + "print-deps": "node -v && python3 --version" }, "dependencies": { "@emoji-mart/data": "^1.1.2", diff --git a/tools/README.md b/tools/README.md index e684860ed..f291db5bc 100644 --- a/tools/README.md +++ b/tools/README.md @@ -9,13 +9,13 @@ The Python scripts are located in the `tools` directory. To run a script, use the following command: ```bash -python ./tools/