Commit 6552b5e
fix(flathub): add npm cache configuration for offline builds (#39)
The Flatpak build was failing because npm couldn't find cached packages
during offline builds. This adds the required npm cache environment
variables to the manifest:
- XDG_CACHE_HOME: points to flatpak-node cache directory
- npm_config_cache: points to npm-cache from flatpak-node-generator
- npm_config_offline: ensures npm uses cached packages only
This fixes the ENOTCACHED error for packages like zustand during the
Flathub CI build.
Fixes flathub/flathub#7454
Co-authored-by: Thomas Marchand (agent) <agent@thomas.md>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 285d6fc commit 6552b5e
File tree
5 files changed
+7
-4
lines changed- .github/workflows
- desktop
- src-tauri
- launcher
5 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| 468 | + | |
| 469 | + | |
468 | 470 | | |
| 471 | + | |
469 | 472 | | |
470 | 473 | | |
471 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments