Commit d88c6c5b authored by Carlos Soriano Sánchez's avatar Carlos Soriano Sánchez
Browse files

general: Add first version of the tools

parent 42290755
#!/bin/sh
export PS1="[flatpak-env] $PS1"
echo "===================================================================="
echo " Entering Flatpak build environment "
echo " "
echo " BATTLECRUISER OPERATIONAL "
echo " >(°)__/ "
echo " (_~_/ "
echo " ~~~~~~~~~~~~ "
echo "===================================================================="
bash
This diff is collapsed.
#!/bin/bash
# Script which must be sourced to setup the development environment.
# This has to be the first command because BASH_SOURCE[0] gets changed.
SCRIPT=${BASH_SOURCE[0]:-$0}
[[ "${BASH_SOURCE[0]}" == "$0" ]] \
&& echo "This script should not be executed but sourced like:" \
&& echo " $ source $0" \
&& echo \
&& exit 1
SCRIPT_DIR=$(dirname $(realpath $SCRIPT))
export FLATPAK_DEV_PATH=$(realpath $1)
export FLATPAK_APP_PATH=$(realpath $2)
export FLATPAK_MANIFEST_PATH=$(realpath $3)
echo "Dev path: $1"
echo "App path: $2"
echo "Manifest path: $3"
# Use flatpakenv for running commands in the sandbox.
alias flatpakenv="$SCRIPT_DIR/flatpak-dev.py -d"
echo "-> Setting up environment if needed..."
# Enter the flatpak build environment
$SCRIPT_DIR/flatpak-dev.py -d
export PS1="[flatpak-dev]"
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