-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump required UnityPy version to 1.10.14 Made CI automatically build and upload the package to PyPI and GitHub Releases
- Loading branch information
Showing
4 changed files
with
60 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,63 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
build-and-release: | ||
if: "contains(github.event.head_commit.message, 'Version')" | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
python -m pip install setuptools wheel build twine | ||
python -m pip install Pyinstaller | ||
python setup.py install | ||
- name: Build package | ||
run: python -m build | ||
run: python -m build --no-isolation | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
twine upload ./dist/*.whl --skip-existing | ||
twine upload ./dist/*.tar.gz --skip-existing | ||
- name: Build Windows executables | ||
run: | | ||
pyinstaller -F -i NONE sssekai/__main__.py --name sssekai | ||
- name : Get Version | ||
id : get_version | ||
run : | | ||
$message = @(git log -1 --oneline --format=%s) | ||
$lines = $message.Split(' ') | ||
$version = $lines[1] | ||
Write-Output "::set-output name=version::$version" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.get_version.outputs.version }} | ||
release_name: Version ${{ steps.get_version.outputs.version }} | ||
- uses: actions/upload-release-asset@v1.0.1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: dist/sssekai.exe | ||
asset_name: sssekai.exe | ||
asset_content_type: application/application/vnd.microsoft.portable-executable | ||
- uses: eregon/publish-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
release_id: ${{ steps.create_release.outputs.id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,16 @@ | ||
# sssekai | ||
Command-line tool (w/Python API support) for downloading/deobfuscating the game's assets, along with some other tools. | ||
|
||
usage: sssekai [-h] | ||
{apidecrypt,abdecrypt,usmdemux,abcache,live2dextract,mitm} ... | ||
# Installation | ||
**For Windows Users** : Builds are available [here](https://github.com/mos9527/sssekai/releases) | ||
|
||
SSSekai Proejct SEKAI feat. Hatsune Miku (Android) Modding Tools | ||
Installation: | ||
pip install sssekai | ||
Or get the latest version from PyPi: | ||
```bash | ||
pip install sssekai | ||
``` | ||
|
||
options: | ||
-h, --help show this help message and exit | ||
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL} | ||
logging level (default: INFO) | ||
--unity-version UNITY_VERSION | ||
Unity version to use (default: 2022.3.21f1) | ||
Prior to game version 3.6.0, this has always been 2020.3.21f1 | ||
This has been changed to 2022.3.21f1 since, which would apply to all the assets from 3.6.0 onwards. | ||
If you encounter any issues, try switching to the old version, or vice versa. | ||
|
||
subcommands: | ||
valid subcommands | ||
|
||
{apidecrypt,abdecrypt,usmdemux,abcache,live2dextract,spineextract,mitm} | ||
additional help | ||
apidecrypt API crypto dumper | ||
This crypto applies to: | ||
- API request/response body dumped by packet sniffer (mitmproxy, wireshark, etc.) | ||
- AssetBundleInfo (can be found at /sdcard/Android/data/com.hermes.mk.asia/files/data/AssetBundleInfo,or see sssekai.abcache) | ||
abdecrypt Decrypt Sekai AssetBundle | ||
These can be found at /sdcard/Android/data/com.hermes.mk.asia/files/data/ | ||
usmdemux Demux Sekai USM Video in a AssetBundle | ||
abcache Sekai AssetBundle Metadata Cache | ||
live2dextract Extract Sekai Live2D Models in a AssetBundle | ||
spineextract Extract Sekai Spine (Esoteric Spine2D) Models in a AssetBundle | ||
mitm Run Sekai API MITM proxy (WIP) | ||
|
||
# Documentations | ||
# Documentation | ||
See the [wiki page!](https://github.com/mos9527/sssekai/wiki) | ||
|
||
# See Also | ||
https://github.com/mos9527/sssekai_blender_io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__VERSION_MAJOR__ = 0 | ||
__VERSION_MINOR__ = 2 | ||
__VERSION_PATCH__ = 1 | ||
__VERSION_PATCH__ = 2 | ||
|
||
__version__ = '%s.%s.%s' % (__VERSION_MAJOR__,__VERSION_MINOR__,__VERSION_PATCH__) |