Skip to content
Snippets Groups Projects
Commit 96299184 authored by Emuis's avatar Emuis
Browse files

use the resources in the git repo, not whatever's outside

parent e3e148dd
No related branches found
No related tags found
No related merge requests found
...@@ -37,13 +37,8 @@ sed -Ei -e '/^ \* Built on .+$/d' bin/*.html ...@@ -37,13 +37,8 @@ sed -Ei -e '/^ \* Built on .+$/d' bin/*.html
# add the date of the last commit to the file, but don't use colons because Windows (still?) doesn't like them # add the date of the last commit to the file, but don't use colons because Windows (still?) doesn't like them
mv bin/*.html "bin/FC pregmod $(git log -1 --format='%cd' --date='format:%F %H-%M').html" mv bin/*.html "bin/FC pregmod $(git log -1 --format='%cd' --date='format:%F %H-%M').html"
# add the vector art if it is available # include the unembedded vector art
ipfs_hash="nothing" ipfs_hash="$(ipfs add -w -Q -r bin/*.html resources)"
if [ -e ../resources ]; then
ipfs_hash="$(ipfs add -w -Q -r bin/*.html ../resources)"
else
ipfs_hash="$(ipfs add -w -Q bin/*.html)"
fi
echo "IPFS Folder Hash: ${ipfs_hash}" > ../IPFS_hash.txt echo "IPFS Folder Hash: ${ipfs_hash}" > ../IPFS_hash.txt
ipfs name publish "$ipfs_hash" ipfs name publish "$ipfs_hash"
...@@ -58,7 +53,7 @@ if [ -z "${XDG_RUNTIME_DIR+x}" ]; then ...@@ -58,7 +53,7 @@ if [ -z "${XDG_RUNTIME_DIR+x}" ]; then
fi fi
# throw it into a file so we can loop over lines, not "strings delimited by whitespace" # throw it into a file so we can loop over lines, not "strings delimited by whitespace"
find ../resources/ bin -print | grep -ve '.gitignore' | sed -e 's|\.\./||' -e 's|bin/||' -e '/bin$/d' | grep -Ee '.+\.svg' -e '.html' > "${XDG_RUNTIME_DIR}/files.list" find resources bin -print | grep -ve '.gitignore' | sed -e 's|bin/||' | grep -Ee '.+\.svg' -e '.html' > "${XDG_RUNTIME_DIR}/files.list"
# ipfs PeerID, it's user specific # ipfs PeerID, it's user specific
PeerID="$(ipfs config show | grep -e 'PeerID' | cut -d: -f 2 | tr -d ' "')" PeerID="$(ipfs config show | grep -e 'PeerID' | cut -d: -f 2 | tr -d ' "')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment