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
|
|
|
|
|
|
|
|
echo 'Patch intro.md to include netlify banner.'
|
2022-09-16 05:03:29 -04:00
|
|
|
cp netlify/intro.md public/public/intro.md
|
2022-02-10 03:27:09 -05:00
|
|
|
echo 'Patch motd.md to include privacy policy.'
|
2022-09-16 05:03:29 -04:00
|
|
|
cp netlify/motd.md public/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
|
2022-09-16 05:03:29 -04:00
|
|
|
echo "Patch base URL"
|
2022-09-18 15:24:42 -04:00
|
|
|
echo HD_EDITOR_BASE_URL="${1}" >> .env.production
|