File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -680,6 +680,16 @@ def install_desktop_app_in_vm(
680680 delete_installer (default_name )
681681 wget (debian_installer_url , default_name )
682682 package_name = subprocess .check_output (f"dpkg-deb -f ./{ default_name } Package" , shell = True ).decode ().strip ()
683+ if custom_args and package_name == 'google-maps-extractor-api' and re .search (r'--auth-token\s+YOUR_AUTH_TOKEN\b' , custom_args ):
684+ raise Exception (
685+ "Authentication Error: YOUR_AUTH_TOKEN is a placeholder and must be replaced with your actual token.\n \n "
686+ "To get your authentication token:\n "
687+ "1. Log in to your omkar.cloud account\n "
688+ "2. Once logged in, view the README - the YOUR_AUTH_TOKEN placeholder will be automatically replaced with your actual authentication token\n "
689+ "3. Copy that actual token and use it in the --custom-args parameter\n \n "
690+ "Example:\n "
691+ 'python3 -m bota install-desktop-app --debian-installer-url https://google-maps-extractor-with-api-omkar-cloud.s3.amazonaws.com/Google+Maps+Extractor+Api-amd64.deb --custom-args "--auth-token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6OTk5OSwidG9vbF9pZCI6MzMsImRlbW8iOnRydWV9.9wg6VYsPxGKsa6UNbxUPQEevnrckJd00UKWmYTNUy2I"'
692+ )
683693 is_already_installed = is_package_installed (package_name )
684694 if is_already_installed :
685695 install_command = f"sudo dpkg -i ./{ default_name } "
You can’t perform that action at this time.
0 commit comments