HackStudio: Move /res/devel to /usr/share/HackStudio

This commit is contained in:
Bastiaan van der Plaat
2024-12-30 20:20:39 +01:00
committed by Tim Schumacher
parent 3247392dca
commit 2bac21d149
14 changed files with 6 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ if [ -f mnt/bin/network-settings ]; then
fi
chmod 600 mnt/etc/shadow
chmod 755 mnt/res/devel/templates/*.postcreate
chmod 755 mnt/usr/share/HackStudio/templates/*.postcreate
echo "done"
printf "creating initial filesystem structure... "

View File

@@ -9,7 +9,7 @@ script_name="$(basename "$0")"
function list_templates() {
echo "Available templates:"
for file in ./Base/res/devel/templates/*.ini; do
for file in ./Base/usr/share/HackStudio/templates/*.ini; do
printf ' %s - ' "$(basename "${file%%.ini}")"
awk -F "=" '/Description/ { print $2 }' "$file"
done
@@ -48,9 +48,9 @@ done
TEMPLATE="$1"
DESTINATION="$2"
TEMPLATE_SOURCE_DIRECTORY="./Base/res/devel/templates/$TEMPLATE"
TEMPLATE_INI="./Base/res/devel/templates/$TEMPLATE.ini"
TEMPLATE_POSTCREATE="./Base/res/devel/templates/$TEMPLATE.postcreate"
TEMPLATE_SOURCE_DIRECTORY="./Base/usr/share/HackStudio/templates/$TEMPLATE"
TEMPLATE_INI="./Base/usr/share/HackStudio/templates/$TEMPLATE.ini"
TEMPLATE_POSTCREATE="./Base/usr/share/HackStudio/templates/$TEMPLATE.postcreate"
if [[ ! -f "$TEMPLATE_INI" ]]; then
echo "$script_name: unknown template \"$TEMPLATE\"."

View File

@@ -17,7 +17,7 @@ namespace HackStudio {
class ProjectTemplate : public RefCounted<ProjectTemplate> {
public:
static ByteString templates_path() { return "/res/devel/templates"; }
static ByteString templates_path() { return "/usr/share/HackStudio/templates"; }
static RefPtr<ProjectTemplate> load_from_manifest(ByteString const& manifest_path);