feat(builder): add rebuild option
This commit is contained in:
10
aklive2d.py
10
aklive2d.py
@@ -66,12 +66,20 @@ class AkLive2D:
|
||||
help="Operators to build"
|
||||
)
|
||||
|
||||
build.add_argument(
|
||||
"-r",
|
||||
"--rebuild",
|
||||
dest="rebuild",
|
||||
action='store_true',
|
||||
help="Rebuild assets"
|
||||
)
|
||||
|
||||
self.args = parser.parse_args()
|
||||
if self.args.command == "server" or self.args.command == "s":
|
||||
self.running = Server(self.args.port, self.args.operator_name, self.config)
|
||||
|
||||
if self.args.command == "build" or self.args.command == "b":
|
||||
self.running = Builder(self.config, self.args.operator_names)
|
||||
self.running = Builder(self.config, self.args.operator_names, self.args.rebuild)
|
||||
|
||||
self.running.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user