2022-02-06 19:38:40 +00:00
|
|
|
#!/bin/bash
|
2022-04-15 21:03:15 +00:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
2022-02-06 19:38:40 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
2022-04-15 21:03:15 +00:00
|
|
|
#
|
2022-02-06 19:38:40 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-07-30 22:39:49 +00:00
|
|
|
echo 'Patch yarnrc to use node_modules'
|
|
|
|
sed -i "s/nodeLinker: pnp/nodeLinker: node-modules/" .yarnrc.yml
|
2022-02-06 19:38:40 +00:00
|
|
|
echo 'Patch intro.md to include netlify banner.'
|
2022-04-15 21:03:15 +00:00
|
|
|
cp netlify/intro.md public/mock-public/intro.md
|
2022-02-10 08:27:09 +00:00
|
|
|
echo 'Patch motd.md to include privacy policy.'
|
2022-04-15 21:03:15 +00:00
|
|
|
cp netlify/motd.md public/mock-public/motd.md
|
2022-02-06 19:38:40 +00:00
|
|
|
echo 'Patch version.json to include git hash'
|
|
|
|
jq ".version = \"0.0.0+${GITHUB_SHA:0:8}\"" src/version.json > src/_version.json
|
|
|
|
mv src/_version.json src/version.json
|