Commit dabb9335 authored by Michael Koch's avatar Michael Koch
Browse files

Stuff

parent 75fe3a62
Pipeline #7986 failed with stage
in 5 minutes and 50 seconds
......@@ -12,7 +12,7 @@ prepare-build:
- web
script:
- apt update
- apt install -y apt-transport-https curl gnupg git rpm make
- apt install -y apt-transport-https curl gnupg git rpm make jq sed
- curl -sL https://deb.nodesource.com/setup_13.x | bash -
- apt install -y nodejs
- sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
......
#!/bin/bash
cd -P -- "$(dirname -- "$0")"/..
if [[ "$(uname)" == *Darwin* ]]; then
sed=gsed
else
sed=sed
fi
if [[ ! -z "$1" ]]; then
if [[ ! -z "$2" ]]; then
if [[ "$1" == "left" ]]; then
......@@ -18,7 +24,7 @@ rm -rf web
cd src
rm -rf build
cp build.yaml /tmp/build.yaml.orig
sed -ne :1 -e 'N;1,2b1' -e 'P;D' build.yaml > /tmp/build.yaml
$sed -ne :1 -e 'N;1,2b1' -e 'P;D' build.yaml > /tmp/build.yaml
mv /tmp/build.yaml build.yaml
echo " - -DleftPrinter=$leftPrinter" >> build.yaml
echo " - -DrightPrinter=$rightPrinter" >> build.yaml
......@@ -30,11 +36,6 @@ cp -R ../includes/*.js ../web/
cp -R ../includes/locales ../web/
# inject our stuff into the HTML
if [[ "$(uname)" == *Darwin* ]]; then
sed=gsed
else
sed=sed
fi
$sed -i 's/<!--electroninject-->/\
<script defer src="config.js"><\/script>\n \
<script defer src="l10n.js"><\/script>\n \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment