mirror of
https://github.com/ihaveamac/custom-install.git
synced 2026-01-24 15:15:58 +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:
|
else:
|
||||||
from os import statvfs
|
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
|
# used to run the save3ds_fuse binary next to the script
|
||||||
if 'CUSTOM_INSTALL_SAVE3DS_PATH' in environ:
|
if 'CUSTOM_INSTALL_SAVE3DS_PATH' in environ:
|
||||||
save3ds_fuse_path = environ['CUSTOM_INSTALL_SAVE3DS_PATH']
|
save3ds_fuse_path = environ['CUSTOM_INSTALL_SAVE3DS_PATH']
|
||||||
@@ -56,12 +62,9 @@ else:
|
|||||||
if is_windows:
|
if is_windows:
|
||||||
save3ds_fuse_name += '.exe'
|
save3ds_fuse_name += '.exe'
|
||||||
frozen = getattr(sys, 'frozen', False)
|
frozen = getattr(sys, 'frozen', False)
|
||||||
script_dir: str
|
|
||||||
if frozen:
|
if frozen:
|
||||||
script_dir = dirname(executable)
|
|
||||||
save3ds_fuse_path = join(script_dir, 'bin', save3ds_fuse_name)
|
save3ds_fuse_path = join(script_dir, 'bin', save3ds_fuse_name)
|
||||||
else:
|
else:
|
||||||
script_dir = dirname(__file__)
|
|
||||||
save3ds_fuse_path = join(script_dir, 'bin', platform, save3ds_fuse_name)
|
save3ds_fuse_path = join(script_dir, 'bin', platform, save3ds_fuse_name)
|
||||||
|
|
||||||
if not isfile(save3ds_fuse_path):
|
if not isfile(save3ds_fuse_path):
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
python,
|
||||||
callPackage,
|
callPackage,
|
||||||
buildPythonApplication,
|
buildPythonApplication,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
@@ -58,8 +59,9 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
makeWrapperArgs = [ "--set CUSTOM_INSTALL_SAVE3DS_PATH ${save3ds_no_fuse}/bin/save3ds_fuse" ];
|
makeWrapperArgs = [ "--set CUSTOM_INSTALL_SAVE3DS_PATH ${save3ds_no_fuse}/bin/save3ds_fuse" ];
|
||||||
|
|
||||||
preFixup = lib.optionalString (!withGUI) ''
|
preFixup = ''
|
||||||
rm $out/bin/custominstall-gui
|
rm -r $out/lib/${python.libPrefix}/site-packages/custominstall/bin
|
||||||
|
${lib.optionalString (!withGUI) "rm $out/bin/custominstall-gui"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
@@ -42,3 +42,7 @@ version = {attr = "custominstall.__version__"}
|
|||||||
|
|
||||||
[tool.setuptools.packages]
|
[tool.setuptools.packages]
|
||||||
find = {namespaces = false}
|
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