add build scripts
This commit is contained in:
parent
c3ee96429c
commit
1d2190d68e
26 changed files with 1327 additions and 6 deletions
20
scripts/_app_scaffolds/linux/install.sh
Normal file
20
scripts/_app_scaffolds/linux/install.sh
Normal 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."
|
9
scripts/_app_scaffolds/linux/myapp.desktop
Normal file
9
scripts/_app_scaffolds/linux/myapp.desktop
Normal 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
|
31
scripts/_app_scaffolds/mac/myapp.app/Contents/Info.plist
Normal file
31
scripts/_app_scaffolds/mac/myapp.app/Contents/Info.plist
Normal 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>
|
5
scripts/_app_scaffolds/mac/myapp.app/Contents/MacOS/bootstrap
Executable file
5
scripts/_app_scaffolds/mac/myapp.app/Contents/MacOS/bootstrap
Executable 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.
BIN
scripts/_app_scaffolds/win/WebView2Loader.dll
Normal file
BIN
scripts/_app_scaffolds/win/WebView2Loader.dll
Normal file
Binary file not shown.
13
scripts/_app_scaffolds/win/install-icon.cmd
Normal file
13
scripts/_app_scaffolds/win/install-icon.cmd
Normal 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/"
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue