fix-build-rpm.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. diff --git a/build/linux/rpm/dependencies-generator.js b/build/linux/rpm/dependencies-generator.js
  2. index 1d91eb8..ed6b775 100644
  3. --- a/build/linux/rpm/dependencies-generator.js
  4. +++ b/build/linux/rpm/dependencies-generator.js
  5. @@ -16,7 +16,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) {
  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/rpm/dependencies-generator.ts b/build/linux/rpm/dependencies-generator.ts
  15. index 95953ec..f5ffc2e 100644
  16. --- a/build/linux/rpm/dependencies-generator.ts
  17. +++ b/build/linux/rpm/dependencies-generator.ts
  18. @@ -18,7 +18,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): string[] {
  25. // Get the files for which we want to find dependencies.
  26. diff --git a/resources/linux/rpm/code.spec.template b/resources/linux/rpm/code.spec.template
  27. index 5b7eadb..87c914d 100644
  28. --- a/resources/linux/rpm/code.spec.template
  29. +++ b/resources/linux/rpm/code.spec.template
  30. @@ -74,3 +74,5 @@ update-mime-database /usr/share/mime &> /dev/null || :
  31. /usr/share/pixmaps/@@ICON@@.png
  32. /usr/share/bash-completion/completions/@@NAME@@
  33. /usr/share/zsh/site-functions/_@@NAME@@
  34. +
  35. +%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json