Skip to content

replace BrowserOpenURL with slightly faster alternative #85

replace BrowserOpenURL with slightly faster alternative

replace BrowserOpenURL with slightly faster alternative #85

Workflow file for this run

name: Verify Configuration
on: [push, pull_request]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Verify 'wails.json' file exists.
shell: bash
run: |
if [ ! -f ./wails.json ]; then
echo -e "\033[31mError: wails.json not found in the root directory!"
exit 1
fi
- name: Read properties.
shell: bash
run: |
PROJ_NAME=$(jq -r '.name' ./wails.json)
if [ -z "$PROJ_NAME" ]; then
echo -e "\033[31mError: key `name` empty or not found in wails.json!"
exit 1
fi
echo -e "\033[32mProject name is '$PROJ_NAME'"
OUTPUT_NAME=$(jq -r '.outputfilename' ./wails.json)
if [ -z "$OUTPUT_NAME" ]; then
echo -e "\033[31mError: key `outputfilename` empty or not found in wails.json!"
exit 1
fi
echo -e "\033[32mOutput file (binary) name is '$OUTPUT_NAME'"