pyappxportable 2026.11.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyappxportable-2026.11.1/.gitignore +181 -0
- pyappxportable-2026.11.1/LICENSE +21 -0
- pyappxportable-2026.11.1/PKG-INFO +119 -0
- pyappxportable-2026.11.1/README.md +98 -0
- pyappxportable-2026.11.1/pyproject.toml +50 -0
- pyappxportable-2026.11.1/src/pyappxportable/__init__.py +8 -0
- pyappxportable-2026.11.1/src/pyappxportable/__main__.py +5 -0
- pyappxportable-2026.11.1/src/pyappxportable/constants.py +22 -0
- pyappxportable-2026.11.1/src/pyappxportable/dependencies.py +287 -0
- pyappxportable-2026.11.1/src/pyappxportable/desktop.py +102 -0
- pyappxportable-2026.11.1/src/pyappxportable/downloads.py +96 -0
- pyappxportable-2026.11.1/src/pyappxportable/errors.py +5 -0
- pyappxportable-2026.11.1/src/pyappxportable/extraction.py +279 -0
- pyappxportable-2026.11.1/src/pyappxportable/installer.py +224 -0
- pyappxportable-2026.11.1/src/pyappxportable/launchers.py +147 -0
- pyappxportable-2026.11.1/src/pyappxportable/macos.py +202 -0
- pyappxportable-2026.11.1/src/pyappxportable/main.py +105 -0
- pyappxportable-2026.11.1/src/pyappxportable/manifest.py +61 -0
- pyappxportable-2026.11.1/src/pyappxportable/options.py +26 -0
- pyappxportable-2026.11.1/src/pyappxportable/patches.py +75 -0
- pyappxportable-2026.11.1/src/pyappxportable/paths.py +38 -0
- pyappxportable-2026.11.1/src/pyappxportable/pe.py +168 -0
- pyappxportable-2026.11.1/src/pyappxportable/runtime.py +99 -0
- pyappxportable-2026.11.1/src/pyappxportable/settings.py +119 -0
- pyappxportable-2026.11.1/src/pyappxportable/updates.py +146 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# Ruff stuff:
|
|
171
|
+
.ruff_cache/
|
|
172
|
+
|
|
173
|
+
# PyPI configuration file
|
|
174
|
+
.pypirc
|
|
175
|
+
|
|
176
|
+
# Cursor
|
|
177
|
+
# Cursor is an AI-powered code editor.`.cursorignore` specifies files/directories to
|
|
178
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
179
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
180
|
+
.cursorignore
|
|
181
|
+
.cursorindexingignore
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 yell0wsuit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pyappxportable
|
|
3
|
+
Version: 2026.11.1
|
|
4
|
+
Summary: Install Windows Store game packages as portable Appx Portable games.
|
|
5
|
+
Project-URL: Homepage, https://github.com/yell0wsuit/pyappxportable
|
|
6
|
+
Project-URL: Issues, https://github.com/yell0wsuit/pyappxportable/issues
|
|
7
|
+
Project-URL: Runtime, https://github.com/yell0wsuit/appx-portable
|
|
8
|
+
Author: yell0wsuit
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Requires-Dist: packaging>=20
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: black; extra == 'dev'
|
|
17
|
+
Requires-Dist: build; extra == 'dev'
|
|
18
|
+
Requires-Dist: pylint; extra == 'dev'
|
|
19
|
+
Requires-Dist: twine; extra == 'dev'
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# pyappxportable
|
|
23
|
+
|
|
24
|
+
Install Windows Store games as ordinary portable desktop games using [Appx Portable](https://github.com/yell0wsuit/appx-portable).
|
|
25
|
+
|
|
26
|
+
Give the installer an `.appxbundle`, `.appx`, or extracted package folder. It extracts the game, downloads the matching Appx Portable runtime and required Microsoft framework packages, applies supported game patches, and writes a `00_click2startme` launcher. Updates preserve saves, settings, and logs.
|
|
27
|
+
|
|
28
|
+
This package contains no games or Microsoft runtime files. Supply your own game packages. Runtime DLLs and game patches come from `yell0wsuit/appx-portable`; framework packages come from `yell0wsuit/vclibs-appx` with pinned SHA-256 checks.
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
Requires **Python 3.8 or later**, with pip. Use a Python release compatible with your Windows version; managed XAML games need Windows 10 1903 or later and .NET Framework 4.x. macOS/Wine support is experimental; managed games and games that require the native host need Windows.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python -m pip install pyappxportable
|
|
36
|
+
pyappxportable "C:\Downloads\Game.appxbundle"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
On Windows, `py -m pip` and `py -m pyappxportable` also work. On macOS/Linux, use `python3` if that is your Python command. With a Python installation managed by your OS, install into a virtual environment or use `pipx install pyappxportable`.
|
|
40
|
+
|
|
41
|
+
Run `pyappxportable` without arguments for prompts. If the command is not on your PATH, use `python -m pyappxportable`. After installation, double-click `00_click2startme.bat` on Windows or `00_click2startme.command` on macOS. Linux uses `00_click2startme.sh` with Wine.
|
|
42
|
+
|
|
43
|
+
## Command-line options
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
pyappxportable Game.appx --dest Games/Game --store none --launcher --yes
|
|
47
|
+
python -m pyappxportable --help
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
| Option | Purpose |
|
|
51
|
+
| -------------------------------- | --------------------------------------------------------------- |
|
|
52
|
+
| `--version` | Show the installed pyappxportable version |
|
|
53
|
+
| `--no-update-check` | Skip the background PyPI update check |
|
|
54
|
+
| `--dest FOLDER` | Destination; defaults beside the source, using its package name |
|
|
55
|
+
| `--dependencies PATH` | VCLibs or .NET Native package/folder; repeat for several |
|
|
56
|
+
| `--build FOLDER` | Use locally built runtime DLLs |
|
|
57
|
+
| `--release TAG` | Select a runtime release instead of the latest |
|
|
58
|
+
| `--store none\|trial\|iap\|both` | Store overrides; omitted with `--yes` preserves settings |
|
|
59
|
+
| `--launcher`, `--no-launcher` | Create or skip the launcher; defaults to creating it |
|
|
60
|
+
| `--no-patch` | Skip known-game patches |
|
|
61
|
+
| `--patch-dir FOLDER` | Use a local Appx Portable `patch/` folder |
|
|
62
|
+
| `--desktop-copy` | Make a Windows 8/8.1 desktop executable copy on any Windows |
|
|
63
|
+
| `--yes` | Disable prompts; fail if a required input is missing |
|
|
64
|
+
|
|
65
|
+
For a local runtime checkout:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pyappxportable Game.appx --build ../appx-portable/build/windows-x86 --patch-dir ../appx-portable/patch
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Choose an x64 build for an x64 game. Without `--patch-dir`, known-game patches are downloaded at the selected runtime release tag, including with `--build`.
|
|
72
|
+
|
|
73
|
+
Upgrade the installer with `python -m pip install --upgrade pyappxportable`. Run it again with the original package and the same `--dest` to update a game. The Python package version and the runtime release version are independent.
|
|
74
|
+
|
|
75
|
+
The CLI checks PyPI in the background at most once a day and prints an upgrade command when a newer compatible stable release is available. Checks never install updates or delay startup; offline failures stay silent. Use `--no-update-check` or set `PYAPPXPORTABLE_NO_UPDATE_CHECK=1` to disable them. `--help`, `--version`, and Python API calls do not check for updates. Use `pyappxportable --version` to show the installed package version.
|
|
76
|
+
|
|
77
|
+
On macOS, the installer can set up Wine Devel, Rosetta 2, and GStreamer. Rosetta and GStreamer require administrator authorization; `--yes` prints instructions for those steps. See the [installer guide](https://github.com/yell0wsuit/appx-portable/blob/main/docs/installer.md) and [game compatibility](https://github.com/yell0wsuit/appx-portable/blob/main/docs/compatibility.md).
|
|
78
|
+
|
|
79
|
+
## Python API
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
from pyappxportable import InstallError, InstallOptions, install_game
|
|
83
|
+
|
|
84
|
+
try:
|
|
85
|
+
install_game(InstallOptions(
|
|
86
|
+
package="Game.appx",
|
|
87
|
+
dest="Games/Game",
|
|
88
|
+
store="none",
|
|
89
|
+
))
|
|
90
|
+
except InstallError as error:
|
|
91
|
+
print(error)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The API runs without prompts by default and returns `0` on success. It raises `InstallError` for actionable installation problems; filesystem errors can also raise `OSError`. Set `yes=False` to enable prompts, optionally supplying an `ask` callback to `install_game`. `Manifest` is also exported for package metadata.
|
|
95
|
+
|
|
96
|
+
## Development
|
|
97
|
+
|
|
98
|
+
This project uses Hatchling and a `src/pyappxportable` package with a console entry point. Modules separate manifests/extraction, PE inspection, downloads, framework dependencies, runtime staging, patches, settings, desktop copies, launchers, macOS setup, and installation orchestration.
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
python -m venv .venv
|
|
102
|
+
# Windows: .venv\Scripts\activate
|
|
103
|
+
# macOS/Linux: source .venv/bin/activate
|
|
104
|
+
python -m pip install -e ".[dev]"
|
|
105
|
+
python -m pylint src/pyappxportable
|
|
106
|
+
python -m black --check src/pyappxportable
|
|
107
|
+
python -m build
|
|
108
|
+
python -m twine check dist/*
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
CI lints, runs the update/release tests, builds wheel/source distributions, checks their metadata, and installs the wheel on Windows and Linux with Python 3.8, and on Windows, macOS, and Linux with the current Python.
|
|
112
|
+
|
|
113
|
+
Pushes to `main` automatically publish to PyPI and create a GitHub release when any pushed commit starts with `feat:`, `fix:`, `perf:`, or `refactor:` (including scopes such as `fix(cli):`). Any conventional commit with `!` or a `BREAKING CHANGE:` footer also releases. Documentation, test, and chore commits only validate unless they declare a breaking change. A manual workflow run on `main` always releases. Publication requires the existing PyPI Trusted Publisher for workflow `build.yaml` and GitHub environment `pypi`.
|
|
114
|
+
|
|
115
|
+
Versions use the UTC date, such as `2026.11.1`, with a fourth segment for repeat releases that day (`2026.11.1.1`, `2026.11.1.2`). Existing GitHub tags, releases, and PyPI versions are checked to avoid reuse. The workflow chooses and builds the version, publishes the validated distributions, and creates the matching `v` tag and GitHub release; no manual version bump or tag push is needed. Hatch VCS derives local checkout versions from Git tags, and the published source distribution retains its release version.
|
|
116
|
+
|
|
117
|
+
## License
|
|
118
|
+
|
|
119
|
+
[MIT](LICENSE). Extracted from `installappx.py` in Appx Portable by yell0wsuit. Games and Microsoft runtime files retain their own licenses.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# pyappxportable
|
|
2
|
+
|
|
3
|
+
Install Windows Store games as ordinary portable desktop games using [Appx Portable](https://github.com/yell0wsuit/appx-portable).
|
|
4
|
+
|
|
5
|
+
Give the installer an `.appxbundle`, `.appx`, or extracted package folder. It extracts the game, downloads the matching Appx Portable runtime and required Microsoft framework packages, applies supported game patches, and writes a `00_click2startme` launcher. Updates preserve saves, settings, and logs.
|
|
6
|
+
|
|
7
|
+
This package contains no games or Microsoft runtime files. Supply your own game packages. Runtime DLLs and game patches come from `yell0wsuit/appx-portable`; framework packages come from `yell0wsuit/vclibs-appx` with pinned SHA-256 checks.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
Requires **Python 3.8 or later**, with pip. Use a Python release compatible with your Windows version; managed XAML games need Windows 10 1903 or later and .NET Framework 4.x. macOS/Wine support is experimental; managed games and games that require the native host need Windows.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
python -m pip install pyappxportable
|
|
15
|
+
pyappxportable "C:\Downloads\Game.appxbundle"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
On Windows, `py -m pip` and `py -m pyappxportable` also work. On macOS/Linux, use `python3` if that is your Python command. With a Python installation managed by your OS, install into a virtual environment or use `pipx install pyappxportable`.
|
|
19
|
+
|
|
20
|
+
Run `pyappxportable` without arguments for prompts. If the command is not on your PATH, use `python -m pyappxportable`. After installation, double-click `00_click2startme.bat` on Windows or `00_click2startme.command` on macOS. Linux uses `00_click2startme.sh` with Wine.
|
|
21
|
+
|
|
22
|
+
## Command-line options
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
pyappxportable Game.appx --dest Games/Game --store none --launcher --yes
|
|
26
|
+
python -m pyappxportable --help
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
| Option | Purpose |
|
|
30
|
+
| -------------------------------- | --------------------------------------------------------------- |
|
|
31
|
+
| `--version` | Show the installed pyappxportable version |
|
|
32
|
+
| `--no-update-check` | Skip the background PyPI update check |
|
|
33
|
+
| `--dest FOLDER` | Destination; defaults beside the source, using its package name |
|
|
34
|
+
| `--dependencies PATH` | VCLibs or .NET Native package/folder; repeat for several |
|
|
35
|
+
| `--build FOLDER` | Use locally built runtime DLLs |
|
|
36
|
+
| `--release TAG` | Select a runtime release instead of the latest |
|
|
37
|
+
| `--store none\|trial\|iap\|both` | Store overrides; omitted with `--yes` preserves settings |
|
|
38
|
+
| `--launcher`, `--no-launcher` | Create or skip the launcher; defaults to creating it |
|
|
39
|
+
| `--no-patch` | Skip known-game patches |
|
|
40
|
+
| `--patch-dir FOLDER` | Use a local Appx Portable `patch/` folder |
|
|
41
|
+
| `--desktop-copy` | Make a Windows 8/8.1 desktop executable copy on any Windows |
|
|
42
|
+
| `--yes` | Disable prompts; fail if a required input is missing |
|
|
43
|
+
|
|
44
|
+
For a local runtime checkout:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
pyappxportable Game.appx --build ../appx-portable/build/windows-x86 --patch-dir ../appx-portable/patch
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Choose an x64 build for an x64 game. Without `--patch-dir`, known-game patches are downloaded at the selected runtime release tag, including with `--build`.
|
|
51
|
+
|
|
52
|
+
Upgrade the installer with `python -m pip install --upgrade pyappxportable`. Run it again with the original package and the same `--dest` to update a game. The Python package version and the runtime release version are independent.
|
|
53
|
+
|
|
54
|
+
The CLI checks PyPI in the background at most once a day and prints an upgrade command when a newer compatible stable release is available. Checks never install updates or delay startup; offline failures stay silent. Use `--no-update-check` or set `PYAPPXPORTABLE_NO_UPDATE_CHECK=1` to disable them. `--help`, `--version`, and Python API calls do not check for updates. Use `pyappxportable --version` to show the installed package version.
|
|
55
|
+
|
|
56
|
+
On macOS, the installer can set up Wine Devel, Rosetta 2, and GStreamer. Rosetta and GStreamer require administrator authorization; `--yes` prints instructions for those steps. See the [installer guide](https://github.com/yell0wsuit/appx-portable/blob/main/docs/installer.md) and [game compatibility](https://github.com/yell0wsuit/appx-portable/blob/main/docs/compatibility.md).
|
|
57
|
+
|
|
58
|
+
## Python API
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from pyappxportable import InstallError, InstallOptions, install_game
|
|
62
|
+
|
|
63
|
+
try:
|
|
64
|
+
install_game(InstallOptions(
|
|
65
|
+
package="Game.appx",
|
|
66
|
+
dest="Games/Game",
|
|
67
|
+
store="none",
|
|
68
|
+
))
|
|
69
|
+
except InstallError as error:
|
|
70
|
+
print(error)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The API runs without prompts by default and returns `0` on success. It raises `InstallError` for actionable installation problems; filesystem errors can also raise `OSError`. Set `yes=False` to enable prompts, optionally supplying an `ask` callback to `install_game`. `Manifest` is also exported for package metadata.
|
|
74
|
+
|
|
75
|
+
## Development
|
|
76
|
+
|
|
77
|
+
This project uses Hatchling and a `src/pyappxportable` package with a console entry point. Modules separate manifests/extraction, PE inspection, downloads, framework dependencies, runtime staging, patches, settings, desktop copies, launchers, macOS setup, and installation orchestration.
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
python -m venv .venv
|
|
81
|
+
# Windows: .venv\Scripts\activate
|
|
82
|
+
# macOS/Linux: source .venv/bin/activate
|
|
83
|
+
python -m pip install -e ".[dev]"
|
|
84
|
+
python -m pylint src/pyappxportable
|
|
85
|
+
python -m black --check src/pyappxportable
|
|
86
|
+
python -m build
|
|
87
|
+
python -m twine check dist/*
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
CI lints, runs the update/release tests, builds wheel/source distributions, checks their metadata, and installs the wheel on Windows and Linux with Python 3.8, and on Windows, macOS, and Linux with the current Python.
|
|
91
|
+
|
|
92
|
+
Pushes to `main` automatically publish to PyPI and create a GitHub release when any pushed commit starts with `feat:`, `fix:`, `perf:`, or `refactor:` (including scopes such as `fix(cli):`). Any conventional commit with `!` or a `BREAKING CHANGE:` footer also releases. Documentation, test, and chore commits only validate unless they declare a breaking change. A manual workflow run on `main` always releases. Publication requires the existing PyPI Trusted Publisher for workflow `build.yaml` and GitHub environment `pypi`.
|
|
93
|
+
|
|
94
|
+
Versions use the UTC date, such as `2026.11.1`, with a fourth segment for repeat releases that day (`2026.11.1.1`, `2026.11.1.2`). Existing GitHub tags, releases, and PyPI versions are checked to avoid reuse. The workflow chooses and builds the version, publishes the validated distributions, and creates the matching `v` tag and GitHub release; no manual version bump or tag push is needed. Hatch VCS derives local checkout versions from Git tags, and the published source distribution retains its release version.
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
[MIT](LICENSE). Extracted from `installappx.py` in Appx Portable by yell0wsuit. Games and Microsoft runtime files retain their own licenses.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling >= 1.26", "hatch-vcs >= 0.4"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pyappxportable"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
authors = [{ name = "yell0wsuit" }]
|
|
9
|
+
description = "Install Windows Store game packages as portable Appx Portable games."
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
license-files = ["LICENSE*"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
]
|
|
18
|
+
dependencies = ["packaging >= 20"]
|
|
19
|
+
|
|
20
|
+
[project.optional-dependencies]
|
|
21
|
+
dev = ["build", "pylint", "twine", "black"]
|
|
22
|
+
|
|
23
|
+
[project.urls]
|
|
24
|
+
Homepage = "https://github.com/yell0wsuit/pyappxportable"
|
|
25
|
+
Issues = "https://github.com/yell0wsuit/pyappxportable/issues"
|
|
26
|
+
Runtime = "https://github.com/yell0wsuit/appx-portable"
|
|
27
|
+
|
|
28
|
+
[project.scripts]
|
|
29
|
+
pyappxportable = "pyappxportable.main:main"
|
|
30
|
+
|
|
31
|
+
[tool.hatch.version]
|
|
32
|
+
source = "vcs"
|
|
33
|
+
|
|
34
|
+
[tool.hatch.version.raw-options]
|
|
35
|
+
fallback_version = "0.1.0"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/pyappxportable"]
|
|
39
|
+
|
|
40
|
+
[tool.hatch.build.targets.sdist]
|
|
41
|
+
include = ["/src", "/README.md", "/LICENSE*", "/pyproject.toml"]
|
|
42
|
+
|
|
43
|
+
[tool.pylint.main]
|
|
44
|
+
py-version = "3.8"
|
|
45
|
+
|
|
46
|
+
[tool.pylint.format]
|
|
47
|
+
max-line-length = 100
|
|
48
|
+
|
|
49
|
+
[tool.black]
|
|
50
|
+
target-version = ["py38"]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""Install Windows Store games as portable desktop applications."""
|
|
2
|
+
|
|
3
|
+
from pyappxportable.errors import InstallError
|
|
4
|
+
from pyappxportable.installer import install_game
|
|
5
|
+
from pyappxportable.manifest import Manifest
|
|
6
|
+
from pyappxportable.options import InstallOptions
|
|
7
|
+
|
|
8
|
+
__all__ = ["InstallError", "InstallOptions", "Manifest", "install_game"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Constants helpers for portable Windows Store games."""
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
|
|
5
|
+
ARCHITECTURES = {0x14C: "x86", 0x8664: "x64"}
|
|
6
|
+
# Package files the game never reads.
|
|
7
|
+
PACKAGE_METADATA = {
|
|
8
|
+
"appxsignature.p7x",
|
|
9
|
+
"appxblockmap.xml",
|
|
10
|
+
"[content_types].xml",
|
|
11
|
+
"appxmetadata",
|
|
12
|
+
"microsoft.system.package.metadata",
|
|
13
|
+
}
|
|
14
|
+
# Bundle application packages in order of preference: Windows 8 and 8.1 games
|
|
15
|
+
# are tested as x86, Windows 10 games as x64.
|
|
16
|
+
BUNDLE_ARCHITECTURES = ("x86", "neutral", "x64")
|
|
17
|
+
UNIVERSAL_BUNDLE_ARCHITECTURES = ("x64", "neutral", "x86")
|
|
18
|
+
IDENTITY_NAME = re.compile(r"^(?=.*[A-Za-z0-9])[A-Za-z0-9.-]{3,50}$")
|
|
19
|
+
INVALID_NAME = re.compile(r'[<>:"|?*\x00-\x1f]')
|
|
20
|
+
|
|
21
|
+
PROXIES = ("d3dcompiler_47.dll", "XAudio2_8.dll", "DWrite.dll")
|
|
22
|
+
REPOSITORY = "yell0wsuit/appx-portable"
|