This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config to don't allow the browser to render the page inside an frame or iframe | |
# and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
# if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
# https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
add_header X-Frame-Options SAMEORIGIN; | |
# when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header, | |
# to disable content-type sniffing on some browsers. | |
# https://www.owasp.org/index.php/List_of_useful_HTTP_headers | |
# currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -ex | |
TARGET_SYSTEMS=" | |
archlinux:latest | |
centos:6 centos:7 centos:8 | |
fedora:33 fedora:34 fedora:35 fedora:37 | |
ubuntu:16.04 ubuntu:18.04 ubuntu:20.04 ubuntu:21.04 ubuntu:22.04 | |
debian:stable-slim debian:unstable-slim debian:testing-slim | |
opensuse/leap:latest opensuse/tumbleweed:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export ORIGIN="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | |
PRINTENV_BIN=$(which printenv) | |
set_bundle_env() { | |
eval "echo SETTING_ENV: $NAME $VALUE" | |
NAME="$1" | |
VALUE="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/bash | |
set -ex | |
HOST_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH) | |
curl -o /tmp/appimagetool-${HOST_ARCH}.AppImage -L https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${HOST_ARCH}.AppImage | |
chmod +x /tmp/appimagetool-${HOST_ARCH}.AppImage | |
cd /opt && /tmp/appimagetool-${HOST_ARCH}.AppImage --appimage-extract | |
mv /opt/squashfs-root /opt/appimagetool.AppDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Install linuxdeploy | |
LINUXDEPLOY_BIN=$PWD/linuxdeploy | |
LINUXDEPLOY_PLUGIN_QT_BIN=$PWD/linuxdeploy-plugin-qt | |
wget -Nc https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -O $LINUXDEPLOY_BIN | |
wget -Nc https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage -O $LINUXDEPLOY_PLUGIN_QT_BIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USER_BIN_PATH="${HOME}/.local/bin/" | |
mkdir -p ${USER_BIN_PATH} | |
TARGET_PATH="${USER_BIN_PATH}/appimage-first-run" | |
wget -c -nv https://github.com/azubieta/appimage-desktop-integration/releases/download/v0.1/Appimage_First_Run_Utility-cf99564-x86_64.AppImage \ | |
-O $TARGET_PATH | |
chmod +x $TARGET_PATH | |
DESKTOP_ENTRY_PATH=$HOME/.local/share/applications/org.appimage.first.run.desktop | |
rm ${DESKTOP_ENTRY_PATH} |