2022-02-06 14:38:40 -05:00
|
|
|
#!/bin/bash
|
2022-04-15 17:03:15 -04:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
2022-02-06 14:38:40 -05:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
2022-04-15 17:03:15 -04:00
|
|
|
#
|
2022-02-06 14:38:40 -05:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-07-30 18:39:49 -04:00
|
|
|
echo 'Patch yarnrc to use node_modules'
|
|
|
|
sed -i "s/nodeLinker: pnp/nodeLinker: node-modules/" .yarnrc.yml
|
2022-02-06 14:38:40 -05:00
|
|
|
echo 'Patch intro.md to include netlify banner.'
|
2022-04-15 17:03:15 -04:00
|
|
|
cp netlify/intro.md public/mock-public/intro.md
|
2022-02-10 03:27:09 -05:00
|
|
|
echo 'Patch motd.md to include privacy policy.'
|
2022-04-15 17:03:15 -04:00
|
|
|
cp netlify/motd.md public/mock-public/motd.md
|
2022-02-06 14:38:40 -05: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
|