Fix packaging names
This commit is contained in:
parent
85df574d3c
commit
e5fa49ad53
24 changed files with 24 additions and 24 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
/output/
|
/output/
|
||||||
/tests/
|
/tests/
|
||||||
/build/
|
/build/
|
||||||
/VNTools.egg-info/
|
|
||||||
/dist/
|
/dist/
|
||||||
|
/vntools.egg-info/
|
||||||
|
|
12
build.bat
12
build.bat
|
@ -5,12 +5,12 @@ mkdir output
|
||||||
mkdir output\bin
|
mkdir output\bin
|
||||||
python -m pip install -r requirements.txt || goto :exit
|
python -m pip install -r requirements.txt || goto :exit
|
||||||
python -m pip install Nuitka || goto :exit
|
python -m pip install Nuitka || goto :exit
|
||||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=ffmpeg-comp FFMpeg-Compressor\__main__.py || goto :exit
|
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=vnrecode vnrecode\__main__.py || goto :exit
|
||||||
xcopy FFMpeg-Compressor\ffmpeg-comp.toml output\bin /Y
|
xcopy vnrecode\vnrecode.toml output\bin /Y
|
||||||
move /Y output\ffmpeg-comp.exe output\bin
|
move /Y output\vnrecode.exe output\bin
|
||||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=rendroid-unpack RenPy-Android-Unpack\__main__.py || goto :exit
|
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=unrenapk unrenapk\__main__.py || goto :exit
|
||||||
move /Y output\rendroid-unpack.exe output\bin
|
move /Y output\unrenapk.exe output\bin
|
||||||
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=vnds2renpy VNDS-to-RenPy/__main__.py || goto :exit
|
python -m nuitka --jobs=%NUMBER_OF_PROCESSORS% --output-dir=output --follow-imports --onefile --output-filename=vnds2renpy vnds2renpy/__main__.py || goto :exit
|
||||||
move /Y output\vnds2renpy.exe output\bin
|
move /Y output\vnds2renpy.exe output\bin
|
||||||
echo "Done! You can get binaries into output\bin directory"
|
echo "Done! You can get binaries into output\bin directory"
|
||||||
|
|
||||||
|
|
12
build.sh
12
build.sh
|
@ -14,11 +14,11 @@ case "$(uname -s)" in
|
||||||
Linux*) jobs="--jobs=$(nproc)";;
|
Linux*) jobs="--jobs=$(nproc)";;
|
||||||
Darwin*) jobs="--jobs=$(sysctl -n hw.ncpu)";;
|
Darwin*) jobs="--jobs=$(sysctl -n hw.ncpu)";;
|
||||||
esac
|
esac
|
||||||
python3 -m nuitka "${jobs}" --output-dir=output --onefile --follow-imports --output-filename=ffmpeg-comp FFMpeg-Compressor/__main__.py
|
python3 -m nuitka "${jobs}" --output-dir=output --onefile --follow-imports --output-filename=vnrecode vnrecode/__main__.py
|
||||||
cp FFMpeg-Compressor/ffmpeg-comp.toml output/bin
|
cp vnrecode/vnrecode.toml output/bin
|
||||||
mv output/ffmpeg-comp output/bin
|
mv output/vnrecode output/bin
|
||||||
python3 -m nuitka "${jobs}" --output-dir=output --onefile --follow-imports --output-filename=rendroid-unpack RenPy-Android-Unpack/__main__.py
|
python3 -m nuitka "${jobs}" --output-dir=output --onefile --follow-imports --output-filename=unrenapk unrenapk/__main__.py
|
||||||
mv output/rendroid-unpack output/bin
|
mv output/unrenapk output/bin
|
||||||
python3 -m nuitka "${jobs}" --output-dir=output --onefile --follow-imports --output-filename=vnds2renpy VNDS-to-RenPy/__main__.py
|
python3 -m nuitka "${jobs}" --output-dir=output --onefile --follow-imports --output-filename=vnds2renpy vnds2renpy/__main__.py
|
||||||
mv output/vnds2renpy output/bin
|
mv output/vnds2renpy output/bin
|
||||||
echo "Done! You can get binaries into output/bin directory"
|
echo "Done! You can get binaries into output/bin directory"
|
|
@ -5,18 +5,18 @@ requires = [
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
packages = ["VNRecode", "RenDroidUnpack", "VNDS2RenPy"]
|
packages = ["vnrecode", "unrenapk", "vnds2renpy"]
|
||||||
include-package-data = true
|
include-package-data = true
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
'VNRecode' = ['*.py']
|
'vnrecode' = ['*.py', '*.toml']
|
||||||
'VNDS2RenPy' = ['*.py']
|
'vnds2renpy' = ['*.py']
|
||||||
'RenDroidUnpack' = ['*.py']
|
'unrenapk' = ['*.py']
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
vnrecode = "VNRecode.__main__:init"
|
vnrecode = "vnrecode.__main__:init"
|
||||||
vnds2renpy = "VNDS2RenPy.__main__:main"
|
vnds2renpy = "vnds2renpy.__main__:main"
|
||||||
rendroid-unpack = "RenDroidUnpack.application:launch"
|
unrenapk = "unrenapk.application:launch"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "vntools"
|
name = "vntools"
|
||||||
|
|
|
@ -10,7 +10,7 @@ from .actions import Actions
|
||||||
|
|
||||||
def args_init():
|
def args_init():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog='rendroid-unpack',
|
prog='unrenapk',
|
||||||
description='Extract Ren\'Py .apk and .obb files into Ren\'Py SDK\'s project'
|
description='Extract Ren\'Py .apk and .obb files into Ren\'Py SDK\'s project'
|
||||||
)
|
)
|
||||||
parser.add_argument('path')
|
parser.add_argument('path')
|
|
@ -13,16 +13,16 @@ class Config:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setup_config(cls):
|
def setup_config(cls):
|
||||||
parser = ArgumentParser(prog="ffmpeg-comp",
|
parser = ArgumentParser(prog="vnrecode",
|
||||||
description="Python utility to compress Visual Novel Resources"
|
description="Python utility to compress Visual Novel Resources"
|
||||||
)
|
)
|
||||||
parser.add_argument("source")
|
parser.add_argument("source")
|
||||||
parser.add_argument("-c", "--config", default="ffmpeg-comp.toml")
|
parser.add_argument("-c", "--config", default="vnrecode.toml")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if os.path.isfile(args.config):
|
if os.path.isfile(args.config):
|
||||||
with open(args.config, "rb") as cfile:
|
with open(args.config, "rb") as cfile:
|
||||||
config = tomllib.load(cfile)
|
config = tomllib.load(cfile)
|
||||||
else:
|
else:
|
||||||
print("Failed to find config. Check `ffmpeg-comp -h` to more info")
|
print("Failed to find config. Check `vnrecode -h` to more info")
|
||||||
exit(255)
|
exit(255)
|
||||||
return cls(config=config, args=args)
|
return cls(config=config, args=args)
|
Loading…
Add table
Add a link
Reference in a new issue