question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow specifying a different output directory than app/?

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m trying to use bubblewrap on an existing project that, per Rails conventions, has .rb files in folders under app/ such as app/models. This conflicts with the default bubblewrap build outputs under app/build and app/src.

Describe the solution you’d like Can we have a flag like --outDir to output to a different location?

bubblewrap build --outDir built

Describe alternatives you’ve considered Moving the original app/ to a temp dir before build, then moving the build app/ to another temp folder, and moving the original app/ contents back. I don’t like this 😄

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
andrebancommented, Jul 30, 2021

You should be able to modify your gradle.properties and specify a different build directory, as described here: https://stackoverflow.com/questions/13915351/change-gradles-working-directory-when-compiling-a-groovy-project

We could add this to twa-manifest.json so that gradle.properties is generated with the correct value when the project is regenerated.

0reactions
joshua-holmescommented, Jul 29, 2022

My solution was to create a custom npm script in the package.json. The script could cd into another directory other than app/ and then run the command. It would look something like this:

"scripts": {
    "build-android": "cd ./android && bubblewrap init ..."
}

You could do the same thing with bubblewrap build or combine them into one command. Then all I have to do is run npm run build-android from app/ and it’ll do the rest. Or since you’re using Rails, you could use the rails equivalent of these custom commands.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change output directory for a target - xcode
Go to File -> Project settings · Click the Advanced button · Click Done , then Done once more.
Read more >
Change the build output directory - Visual Studio (Windows)
To change the build output directory using the legacy .NET Project Designer or C++ property pages · For C#, select the Build tab....
Read more >
Delphi Compiler - RAD Studio - Embarcadero DocWiki
Use a semicolon to separate multiple symbols. ... If left blank, the global DCP output directory specified in the Tools > Options >...
Read more >
Overview of docker compose CLI
When you use multiple Compose files, all paths in the files are relative to the first configuration file specified with -f . You...
Read more >
Compile and build applications with IntelliJ IDEA - JetBrains
In Project Settings, select Project and in the Project compiler output field, specify the corresponding path. Project Structure dialog / ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found