-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Briefcase can run while offline #388
Comments
I'll add to this that the fallback file should be transferable by the user to a clearly defined folder. For example, the user can set it to a custom directory in the toml file. |
@MosGeo It's already possible to manually specify templates or support packages as part of your project configuration; the issue is that this won't necessarily prevent network access. |
I am able to use briefcase in offline mode after copying all the required tools, templates manually and setting the environment variable. I don't have the project on me right now to provide exact info. Now, I am able to build and package my project completely offline without any warnings. Note that I am doing this for windows. I have not rested it for Android. |
Thanks, but that's not really a solution to this problem - it's a (partial) fix for #738. The issue this ticket describes isn't getting the tools - it's working around the various places that Briefcase (and the tools Briefcase invokes) perform explicit "am I up to date?" checks. These currently require network access. It doesn't matter if you have those tools already - Briefcase is expecting to be able to request updates; those cases need to be either avoided, or the network error caused by being offline needs to be caught. |
As long as you have previously downloaded templates, support packages etc, it should be possible to run Briefcase while you have no internet connection.
At present, being offline raises loud errors.
There may be other online checks that need to be gated.
Two changes are required:
--offline
command line argument that will silence (or at least radically quieten down) warnings related to being offlineThe
NetworkFailure
exception may provide a useful way to identify and catch these cases.The text was updated successfully, but these errors were encountered: