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.

Add configurable option for the temp build directory

See original GitHub issue

Using this command line:

$ electron-packager . UF --platform=win32 --overwrite --arch=ia32 --version=0.34.2

My app builds just fine if I executed on a subset of it (e.g. 2 of 41 chapters of an educational resource).

However, a full build fails silently (20G of product, most of that videos).

Nervous about shipping product in 2 weeks… so close to working!

How do I debug this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bitwombatcommented, Nov 21, 2015

Oh, beautiful.

electron-packager uses os.tmpdir() which, if I look at /usr/lib/nodejs/os.js I can see is:

exports.tmpdir = function() {
  return process.env.TMPDIR ||
         process.env.TMP ||
         process.env.TEMP ||
         (process.platform === 'win32' ? 'c:\\windows\\temp' : '/tmp');
};

So all I need to do is set TMPDIR (or TMP or TEMP) in my shell’s environment before calling node-packager. Long live open source!

0reactions
eugirdorcommented, Jan 5, 2016

@malept The problem is that is global, so all parallel builds will end up using the last set value. I should have a pull request soon that adds the configurable switch. Just testing it out now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure temporary directory in Bamboo server
How to configure temporary directory in Bamboo server ... Add the following Java option by configuring your system properties:.
Read more >
Change the build output directory - Visual Studio (Windows)
For C#, select the Build tab. For Visual Basic, select the Compile tab. For C++ or JavaScript, select the General tab. In the...
Read more >
Change temporary directory - Stack Overflow
Create a file called .Renviron in the directory given by Sys.getenv('R_USER') and save it with the line TMP = '<your-desired-tempdir>' .
Read more >
How to Configure a Temporary Directory for Updating WHMCS
Create Temporary Directory · Log into the cPanel · Click the File Manager button, then navigate to the folder where you want to...
Read more >
Advanced configuration - GitLab Docs
GitLab Runner does not require a restart when you change most options. ... builds_dir, Absolute path to a directory where builds are stored...
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