Skip to content
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

[question] How to build abstreet without downoading additional files during the build? #959

Open
yurivict opened this issue Jul 21, 2022 · 4 comments

Comments

@yurivict
Copy link

When the application is built from the port it starts like this:
image
and exits.

The instructions say:

Grab the minimal amount of data to get started: cargo run --bin updater -- download --minimal.

Can this data be packaged into a separate tarball so that there would be no need to run the "cargo" command?

The package builder can't run commands that download anything.

What if the user isn't even interested in Seattle? Why doesn't the application simply offer to download any city data instead of just exiting?

How to build/install abstreet without additional downloads during build, and such that it is functional when installed?

@Robinlovelace
Copy link
Contributor

This may help: https://a-b-street.github.io/docs/user/new_city.html

You should be able to download data for new cities from the graphical user interface (GUI). Which part of the world would you like to import?

@yurivict
Copy link
Author

Which part of the world would you like to import?

I don't understand why does a fresh installation expect Seattle data and why does it fail when Seattle data isn't found? Shouldn't it offer to download some data instead?

@Robinlovelace
Copy link
Contributor

I don't understand why does a fresh installation expect Seattle data and why does it fail when Seattle data isn't found? Shouldn't it offer to download some data instead?

Possibly, I'm not 100% sure and will defer to Dustin and others on this.

@dabreegster
Copy link
Collaborator

Hi @yurivict, thanks for your continued efforts to try to package for FreeBSD. Unfortunately I don't yet have the time to make the necessary changes.

What if the user isn't even interested in Seattle? Why doesn't the application simply offer to download any city data instead of just exiting?

Seattle isn't important at all; that updater -- download --minimal command just downloads a few files. There's just an old assumption in many of the A/B Street apps that there's always some map loaded at all times. So when the app starts, we need some map, and for native releases, the hack has been to include some random small map.

Maybe we can programatically generate an empty / fake map, and then the user's first step will always be to just use the UI to download or import the city they care about. I need to test this in all of the apps, to make sure they don't break on totally empty maps -- there may be weird assumptions scattered around.

I'll try and find time to try this change, but ~solo developing+maintaining a project of this size has stretched me very thin.

dabreegster added a commit that referenced this issue Dec 12, 2022
is by default in the .zip release!)

This also inches towards #959 a bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants