Code change:
<ins> diff --git a/pack.ts b/pack.ts index aba98cc..03ce86a 100644 --- a/pack.ts +++ b/pack.ts @@ -75,33 +75,7 @@ const packageApp = async () => { delete pJson.scripts.prepack; // We don't want to rebuild - all built code will be in the packed content await fs.writeJson(path.join(OUTPUT_DIR, 'package.json'), pJson); -    const buildScript = path.join(OUTPUT_DIR, 'build-release.sh'); - -    // Run build-release in this folder, for each platform. For each bundle, we copy in -    // only the relevant platform-specific NSS files. -    console.log('Building for Linux'); -    await fs.mkdir(path.join(OUTPUT_DIR, 'nss')); -    await fs.copy(path.join(__dirname, 'nss', 'linux'), path.join(OUTPUT_DIR, 'nss', 'linux')); -    await spawn(buildScript, ['linux'], { cwd: OUTPUT_DIR, stdio: 'inherit' }); - -    console.log('Building for Darwin'); -    await fs.remove(path.join(OUTPUT_DIR, 'nss', 'linux')); -    await fs.copy(path.join(__dirname, 'nss', 'darwin'), path.join(OUTPUT_DIR, 'nss', 'darwin')); -    await spawn(buildScript, ['darwin'], { cwd: OUTPUT_DIR, stdio: 'inherit' }); - -    console.log('Building for Win32'); -    await fs.remove(path.join(OUTPUT_DIR, 'nss', 'darwin')); -    await fs.copy(path.join(__dirname, 'nss', 'win32'), path.join(OUTPUT_DIR, 'nss', 'win32')); -    await spawn(buildScript, ['win32'], { cwd: OUTPUT_DIR, stdio: 'inherit' }); - -    // Oclif builds a nodeless platform-agnostic bundle too (although in our case, nothing is -    // really platform agnostic). Not necessary, probably won't work - drop it. -    await fs.remove(path.join( -        OUTPUT_DIR, -        'dist', -        `v${pJson.version}`, -        `httptoolkit-server-v${pJson.version}.tar.gz` -    )); +    await spawn('npm', ['exec', '--', 'oclif-dev', 'pack', '--targets=linux-x64'], { cwd: OUTPUT_DIR, stdio: 'inherit' }); } packageApp().catch(e => { </ins>

Related discussion:
text: HTTP Toolkit is an open-source tool for debugging, testing and building with HTTP(S) on Windows, Linux & Mac. Metadata homepage URL: source URL: license: AGPL v3.0 platforms: linux, darwin
Sorry, wasn't able to get it working. The httptoolkit-server is the difficult part. I tried building from source, however one of the dependencies tries to npm install more stuff in prebuild, so it wasn't building properly. I tried packaging the prebuilt binary but it's trying to do some auto updating and also package node with itself. I could have patched this when building from source, however the prebuilt one is minified & obfuscated so I couldn't do that.
Have you a branch to continue the work ?
+1
I've started a small bounty of 20$ on this: It's not much but it would be great to have this tool on nix!
I made another attempt at packaging this and I'm pretty close to getting httptoolkit-server to compile from source. This should help with patching out stuff, since we can do it before it gets obfuscated.
if anyone needs to run this on nix the appimage provided by HttpToolkit works pretty well on nix with no extra dependencies. See and then Would still be great to have this as a nix package though.
Hey thanks for adding this! You can claim the gitpay bounty here: (I've tried to find your email to invite you but didn't have much luck) or email me at
Sent you an email,