-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ntk.exe and installer for generate exe file
- Loading branch information
1 parent
67d0995
commit 1a6821c
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import subprocess | ||
|
||
# Required: Install PyInstaller before using this script | ||
# Install with: pip install pyinstaller | ||
|
||
# This script is used to create a command alias (`ntk`) for running a Python module (`ntk`) more easily. | ||
|
||
# To generate an executable using PyInstaller, use the following command: | ||
# python -m PyInstaller --onefile --console .\ntk\installer.py -n n | ||
|
||
if __name__ == "__main__": | ||
subprocess.run(['python', '-m', 'pip', 'install', 'next-theme-kit']) | ||
|
||
# Set up a command alias: 'ntk' will execute 'python -m ntk' with any passed arguments | ||
os.system("doskey ntk=python -m ntk.ntk $*") | ||
|
||
# Open a new command prompt window and keep it open | ||
os.system("cmd /k") | ||