mirror of
https://github.com/ihaveamac/custom-install.git
synced 2026-01-22 14:26:00 +00:00
move bin and title.db.gx to inside custominstall folder
This commit is contained in:
2
MANIFEST.in
Normal file
2
MANIFEST.in
Normal file
@@ -0,0 +1,2 @@
|
||||
recursive-include custominstall/bin/*
|
||||
include custominstall/title.db.gz
|
||||
@@ -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):
|
||||
|
||||
@@ -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; {
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user