move bin and title.db.gx to inside custominstall folder

This commit is contained in:
ihaveahax
2026-01-08 18:30:04 -06:00
parent a0234e9b53
commit 50a7117aa9
10 changed files with 16 additions and 5 deletions

2
MANIFEST.in Normal file
View File

@@ -0,0 +1,2 @@
recursive-include custominstall/bin/*
include custominstall/title.db.gz

View File

@@ -48,6 +48,12 @@ if is_windows:
else:
from os import statvfs
script_dir: str
if frozen:
script_dir = dirname(executable)
else:
script_dir = dirname(__file__)
# used to run the save3ds_fuse binary next to the script
if 'CUSTOM_INSTALL_SAVE3DS_PATH' in environ:
save3ds_fuse_path = environ['CUSTOM_INSTALL_SAVE3DS_PATH']
@@ -56,12 +62,9 @@ else:
if is_windows:
save3ds_fuse_name += '.exe'
frozen = getattr(sys, 'frozen', False)
script_dir: str
if frozen:
script_dir = dirname(executable)
save3ds_fuse_path = join(script_dir, 'bin', save3ds_fuse_name)
else:
script_dir = dirname(__file__)
save3ds_fuse_path = join(script_dir, 'bin', platform, save3ds_fuse_name)
if not isfile(save3ds_fuse_path):

View File

@@ -1,6 +1,7 @@
{
lib,
pkgs,
python,
callPackage,
buildPythonApplication,
fetchPypi,
@@ -58,8 +59,9 @@ buildPythonApplication rec {
makeWrapperArgs = [ "--set CUSTOM_INSTALL_SAVE3DS_PATH ${save3ds_no_fuse}/bin/save3ds_fuse" ];
preFixup = lib.optionalString (!withGUI) ''
rm $out/bin/custominstall-gui
preFixup = ''
rm -r $out/lib/${python.libPrefix}/site-packages/custominstall/bin
${lib.optionalString (!withGUI) "rm $out/bin/custominstall-gui"}
'';
meta = with lib; {

View File

@@ -42,3 +42,7 @@ version = {attr = "custominstall.__version__"}
[tool.setuptools.packages]
find = {namespaces = false}
# is it even possible to make these OS-specific with pyproject.toml?
[tool.setuptools.package-data]
custominstall = ["bin/darwin/save3ds_fuse", "bin/win32/save3ds_fuse.exe"]