Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
96299184
Commit
96299184
authored
7 years ago
by
Emuis
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devTools/BuildAndIPFSify.sh
+3
-8
3 additions, 8 deletions
devTools/BuildAndIPFSify.sh
with
3 additions
and
8 deletions
devTools/BuildAndIPFSify.sh
+
3
−
8
View file @
96299184
...
@@ -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
' "'
)
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment