forked from Shinonome/caelestia-cli
Squashed commit of the following:
commit 7c47604c45e293a29ca31f01e140d621194c0aa6 Author: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat Jun 14 23:02:06 2025 +1000 dev: run without installing
This commit is contained in:
@@ -1,11 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Utility script for rebuilding and running caelestia
|
# Utility script for running caelestia
|
||||||
|
|
||||||
cd $(dirname $0) || exit
|
cd "$(dirname $0)/src" || exit
|
||||||
|
|
||||||
sudo rm -r dist /usr/bin/caelestia /usr/lib/python3.*/site-packages/caelestia* 2> /dev/null
|
python -m caelestia "$@"
|
||||||
python -m build --wheel --no-isolation > /dev/null
|
|
||||||
sudo python -m installer --destdir=/ dist/*.whl > /dev/null
|
|
||||||
|
|
||||||
/usr/bin/caelestia "$@"
|
|
||||||
|
|||||||
@@ -7,7 +7,3 @@ def main() -> None:
|
|||||||
args.cls(args).run()
|
args.cls(args).run()
|
||||||
else:
|
else:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
from . import main
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Reference in New Issue
Block a user