add build scripts

This commit is contained in:
Félix Dorn 2025-06-19 13:00:16 +02:00
parent c3ee96429c
commit 1d2190d68e
26 changed files with 1327 additions and 6 deletions

View file

@ -0,0 +1,20 @@
#!/bin/bash
echo "Installing ..."
cd ..
mkdir {APP_PATH}
cp -r {APP_NAME} {APP_BASEPATH}
cd {APP_NAME}
chmod +x {APP_EXEC}
cp {APP_ICON} {APP_ICON_PATH}
cp {APP_NAME}.desktop /usr/share/applications/{APP_NAME}.desktop
read -p "Delete original files? (y/n): " answer
if [[ $answer == "y" ]]; then
echo "Deleting ..."
cd ..
rm -rf {APP_NAME}
fi
echo "DONE."

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name={APP_NAME}
Icon={APP_ICON_PATH}
Exec={APP_EXEC}
Path={APP_PATH}
Terminal=false
Type=Application

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleExecutable</key>
<string>bootstrap</string>
<key>CFBundleGetInfoString</key>
<string>{APP_NAME}</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>CFBundleIdentifier</key>
<string>{APP_ID}</string>
<key>CFBundleName</key>
<string>{APP_BUNDLE}</string>
<key>CFBundleShortVersionString</key>
<string>{APP_VERSION}</string>
<key>CFBundleGetInfoString</key>
<string>{APP_NAME} {APP_VERSION}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSMinimumSystemVersion</key>
<string>{APP_MIN_OS}</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Based on code by https://github.com/malipetek - hey you did a brilliant job!
MACOS="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
CONTENTS="$(dirname "$MACOS")"
exec "${MACOS}/main" --path="${CONTENTS}/Resources" --enable-extensions=true

Binary file not shown.

View file

@ -0,0 +1,13 @@
@echo off
set TOOL="c:\Program Files (x86)\Resource Hacker\ResourceHacker.exe"
if exist %TOOL% (
%TOOL% -open {APP_NAME} -save {APP_NAME} -action addskip -res {APP_ICON} -mask ICONGROUP,MAINICON,
del {APP_ICON}
del install-icon.cmd
)
else (
echo "Please install 'Resource Hacker' first."
echo "Press any key ..."
pause
start "" "https://www.angusj.com/resourcehacker/"
)