Compare commits
No commits in common. "3a244eb95e03af8ac3edbeca0bfe8f81cfc30157" and "3139d7fd4007edcfe5f172a71348cf93bf680a2b" have entirely different histories.
3a244eb95e
...
3139d7fd40
@ -19,7 +19,7 @@ for [Windows](https://github.com/wailsapp/wails/issues/1292):
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo pacman -S mingw-w64-gcc
|
sudo pacman -S mingw-w64-gcc
|
||||||
wails dev # to generate bindings
|
wails dev #to generate bindings
|
||||||
env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_CXXFLAGS="-IC:\msys64\mingw64\include" wails build -ldflags '-extldflags "-static"' -skipbindings
|
env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_CXXFLAGS="-IC:\msys64\mingw64\include" wails build -ldflags '-extldflags "-static"' -skipbindings
|
||||||
```
|
```
|
||||||
|
|
||||||
|
34
setup.sh
34
setup.sh
@ -1,34 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Get the current directory name
|
|
||||||
CURRENT_DIR_NAME=$(basename "$PWD")
|
|
||||||
|
|
||||||
# Define the files to be updated
|
|
||||||
FILES=("main.go" "go.mod" "wails.json")
|
|
||||||
|
|
||||||
# String to be replaced
|
|
||||||
OLD_STRING="wails-template"
|
|
||||||
|
|
||||||
# Loop through the files and replace occurrences of the old string
|
|
||||||
for file in "${FILES[@]}"; do
|
|
||||||
if [[ -f "$file" ]]; then
|
|
||||||
sed -i "s/${OLD_STRING}/${CURRENT_DIR_NAME}/g" "$file"
|
|
||||||
echo "Updated: $file"
|
|
||||||
else
|
|
||||||
echo "File not found: $file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
#### finalize wails.json
|
|
||||||
|
|
||||||
USER_NAME=$(git config user.name)
|
|
||||||
E_USER_NAME=$(printf '%s\n' "$USER_NAME" | sed -e 's/[\/&]/\\&/g')
|
|
||||||
USER_EMAIL=$(git config user.email)
|
|
||||||
E_USER_EMAIL=$(printf '%s\n' "$USER_EMAIL" | sed -e 's/[\/&]/\\&/g')
|
|
||||||
|
|
||||||
|
|
||||||
sed -i "s/schreifuchss/${USER_NAME}/g" "wails.json"
|
|
||||||
sed -i "s/kontakt@schreifuchs\.ch/${USER_EMAIL}/g" "wails.json"
|
|
||||||
|
|
||||||
echo "You are rady to gooooo"
|
|
Loading…
x
Reference in New Issue
Block a user