fix-build-linux.patch 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. diff --git a/build/linux/debian/dependencies-generator.js b/build/linux/debian/dependencies-generator.js
  2. index 235ca26..4f0f06e 100644
  3. --- a/build/linux/debian/dependencies-generator.js
  4. +++ b/build/linux/debian/dependencies-generator.js
  5. @@ -17,7 +17,7 @@ const dep_lists_1 = require("./dep-lists");
  6. // If true, we fail the build if there are new dependencies found during that task.
  7. // The reference dependencies, which one has to update when the new dependencies
  8. // are valid, are in dep-lists.ts
  9. -const FAIL_BUILD_FOR_NEW_DEPENDENCIES = true;
  10. +const FAIL_BUILD_FOR_NEW_DEPENDENCIES = false;
  11. function getDependencies(buildDir, applicationName, arch, sysroot) {
  12. // Get the files for which we want to find dependencies.
  13. const nativeModulesPath = path.join(buildDir, 'resources', 'app', 'node_modules.asar.unpacked');
  14. diff --git a/build/linux/debian/dependencies-generator.ts b/build/linux/debian/dependencies-generator.ts
  15. index 9e3d466..776a4c2 100644
  16. --- a/build/linux/debian/dependencies-generator.ts
  17. +++ b/build/linux/debian/dependencies-generator.ts
  18. @@ -19,7 +19,7 @@ import { ArchString } from './types';
  19. // If true, we fail the build if there are new dependencies found during that task.
  20. // The reference dependencies, which one has to update when the new dependencies
  21. // are valid, are in dep-lists.ts
  22. -const FAIL_BUILD_FOR_NEW_DEPENDENCIES: boolean = true;
  23. +const FAIL_BUILD_FOR_NEW_DEPENDENCIES: boolean = false;
  24. export function getDependencies(buildDir: string, applicationName: string, arch: ArchString, sysroot: string): string[] {
  25. // Get the files for which we want to find dependencies.
  26. diff --git a/build/linux/rpm/dependencies-generator.js b/build/linux/rpm/dependencies-generator.js
  27. index 90cfca9..c92579e 100644
  28. --- a/build/linux/rpm/dependencies-generator.js
  29. +++ b/build/linux/rpm/dependencies-generator.js
  30. @@ -16,7 +16,7 @@ const dep_lists_1 = require("./dep-lists");
  31. // If true, we fail the build if there are new dependencies found during that task.
  32. // The reference dependencies, which one has to update when the new dependencies
  33. // are valid, are in dep-lists.ts
  34. -const FAIL_BUILD_FOR_NEW_DEPENDENCIES = true;
  35. +const FAIL_BUILD_FOR_NEW_DEPENDENCIES = false;
  36. function getDependencies(buildDir, applicationName, arch) {
  37. // Get the files for which we want to find dependencies.
  38. const nativeModulesPath = path.join(buildDir, 'resources', 'app', 'node_modules.asar.unpacked');
  39. diff --git a/build/linux/rpm/dependencies-generator.ts b/build/linux/rpm/dependencies-generator.ts
  40. index 4b84640..55429fb 100644
  41. --- a/build/linux/rpm/dependencies-generator.ts
  42. +++ b/build/linux/rpm/dependencies-generator.ts
  43. @@ -16,7 +16,7 @@ import { ArchString } from './types';
  44. // If true, we fail the build if there are new dependencies found during that task.
  45. // The reference dependencies, which one has to update when the new dependencies
  46. // are valid, are in dep-lists.ts
  47. -const FAIL_BUILD_FOR_NEW_DEPENDENCIES: boolean = true;
  48. +const FAIL_BUILD_FOR_NEW_DEPENDENCIES: boolean = false;
  49. export function getDependencies(buildDir: string, applicationName: string, arch: ArchString): string[] {
  50. // Get the files for which we want to find dependencies.
  51. diff --git a/resources/linux/rpm/code.spec.template b/resources/linux/rpm/code.spec.template
  52. index 00ddb6f..cea0e97 100644
  53. --- a/resources/linux/rpm/code.spec.template
  54. +++ b/resources/linux/rpm/code.spec.template
  55. @@ -72,3 +72,5 @@ update-mime-database /usr/share/mime &> /dev/null || :
  56. /usr/share/pixmaps/@@ICON@@.png
  57. /usr/share/bash-completion/completions/@@NAME@@
  58. /usr/share/zsh/site-functions/_@@NAME@@
  59. +
  60. +%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json