summarylogtreecommitdiffstats
path: root/0001-Do-not-download-pandoc.patch
blob: 471d14b3439648209acf689d64cb709f4f46d63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 134b69946ba94932aed157a724202fab10eeb585 Mon Sep 17 00:00:00 2001
From: BrLi <brli@chakralinux.org>
Date: Tue, 26 Oct 2021 17:01:05 +0800
Subject: [PATCH] Do not download pandoc

- The downloading of extra binary from internet during building is not desired
- To ease possible error, we deal the file installation and faking from
  PKGBUILD instead of upstream build system.
---
 forge.config.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/forge.config.js b/forge.config.js
index 232aca3d..a57a5826 100644
--- a/forge.config.js
+++ b/forge.config.js
@@ -82,12 +82,9 @@ module.exports = {
         try {
           await fs.lstat(path.join(__dirname, `./resources/pandoc-${platform}-${arch}`))
         } catch (err) {
-          await downloadPandoc(platform, arch)
+          console.log('\nSkip pandoc executable download on Arch')
         }
-
-        await fs.copyFile(path.join(__dirname, `./resources/pandoc-${platform}-${arch}`), path.join(__dirname, './resources/pandoc'))
-
-        forgeConfig.packagerConfig.extraResource.push(path.join(__dirname, './resources/pandoc'))
+        console.log('\nDo not copy pandoc executable, is taking cared of via PKGBUILD')
       } else {
         // If someone is building this on an unsupported platform, drop a warning.
         console.log(`\nBuilding for an unsupported platform/arch-combination ${targetPlatform}/${targetArch} - not bundling Pandoc.`)
-- 
2.33.1