From 7411032c3c360763b35e5f8e15456bb7129910a5 Mon Sep 17 00:00:00 2001
From: StuffedAnon <stuffedgame@gmail.com>
Date: Sun, 17 Mar 2019 15:59:29 +0900
Subject: [PATCH] Make a symlink soft link to resources inside bin/  to make
 sure that the compiled html can actually access the images

---
 compile                         | 2 ++
 compile-git                     | 2 ++
 compile-git+java-sanityCheck.sh | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/compile b/compile
index d11d2047cdf..cc15b4a3bac 100755
--- a/compile
+++ b/compile
@@ -69,4 +69,6 @@ fi
 sed -i -e '/^.*<div id="store-area".*$/s/\\t/\t/g' -e '/^.*<div id="store-area".*$/s/\\n/\n/g' bin/FC_pregmod_tmp.html \
 	&& mv bin/FC_pregmod_tmp.html bin/FC_pregmod.html
 
+ln -s ../resources bin/ 2> /dev/null
+
 echo "bin/FC_pregmod.html compilation finished."
diff --git a/compile-git b/compile-git
index 5e011a38ed5..c0b438e9363 100755
--- a/compile-git
+++ b/compile-git
@@ -43,4 +43,6 @@ $TWEEGO_EXE -o "bin/FC_pregmod_${HASH}_tmp.html" src/
 sed -i -e '/^<div id="store-area".*$/s/\\t/\t/g' -e '/^<div id="store-area".*$/s/\\n/\n/g'  "bin/FC_pregmod_${HASH}_tmp.html" \
 	&& mv "bin/FC_pregmod_${HASH}_tmp.html" "bin/FC_pregmod_${HASH}.html"
 
+ln -s ../resources bin/ 2> /dev/null
+
 echo "bin/FC_pregmod_$HASH.html compilation finished."
diff --git a/compile-git+java-sanityCheck.sh b/compile-git+java-sanityCheck.sh
index 7833bb97dad..16f5d6ec2d1 100755
--- a/compile-git+java-sanityCheck.sh
+++ b/compile-git+java-sanityCheck.sh
@@ -43,4 +43,6 @@ $TWEEGO_EXE -o "bin/FC_pregmod_${HASH}_tmp.html" src/
 sed -i -e '/^<div id="store-area".*$/s/\\t/\t/g' -e '/^<div id="store-area".*$/s/\\n/\n/g'  "bin/FC_pregmod_${HASH}_tmp.html" \
 	&& mv "bin/FC_pregmod_${HASH}_tmp.html" "bin/FC_pregmod_${HASH}.html"
 
+ln -s ../resources bin/ 2> /dev/null
+
 echo "FC_pregmod_$HASH.html compilation finished."
-- 
GitLab