From da588e9b897d6977479cf39082defa9524238e1f Mon Sep 17 00:00:00 2001 From: Cheesy-Brik <95463553+Cheesy-Brik@users.noreply.github.com> Date: Wed, 8 Feb 2023 20:32:43 -0600 Subject: [PATCH] Fix powershell command (#484) --- pynecone/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynecone/utils.py b/pynecone/utils.py index 92c7f2000..3bd3ee062 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -503,7 +503,7 @@ def export_app(app: App, zip: bool = False): if os.name == "posix": cmd = r"cd .web/_static && zip -r ../../frontend.zip ./* && cd ../.. && zip -r backend.zip ./* -x .web/\* ./assets\* ./frontend.zip\* ./backend.zip\*" if os.name == "nt": - cmd = r'powershell -Command "Set-Location .web/_static; Compress-Archive -Path .\* -DestinationPath ..\..\frontend.zip; Set-Location ..\..; Compress-Archive -Path .\* -DestinationPath backend.zip -Exclude .web\*, assets\*, frontend.zip, backend.zip"' + cmd = r'''powershell -Command "Set-Location .web/_static; Compress-Archive -Path .\* -DestinationPath ..\..\frontend.zip -Force;cd ..\..;Get-ChildItem .\* -Directory | where {`$_.Name -notin @('.web', 'assets', 'frontend.zip', 'backend.zip')} | Compress-Archive -DestinationPath backend.zip -Update"''' os.system(cmd)