update
This commit is contained in:
9
.idea/go_win_template.iml
generated
Normal file
9
.idea/go_win_template.iml
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="GoModuleSettings" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/go_win_template.iml" filepath="$PROJECT_DIR$/.idea/go_win_template.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
35
build.bat
Normal file
35
build.bat
Normal file
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo.
|
||||
echo [build] Starting...
|
||||
echo.
|
||||
|
||||
:: 1. Build frontend
|
||||
echo [1/3] Building frontend...
|
||||
cd frontend
|
||||
call npm install >nul 2>&1
|
||||
call npm run build >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [error] Frontend build failed
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
cd ..
|
||||
|
||||
:: 2. Build Wails app (output to build/bin/)
|
||||
echo [2/3] Building Wails app...
|
||||
wails build -platform windows/amd64
|
||||
if errorlevel 1 (
|
||||
echo [error] Wails build failed
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: 3. Copy exe to root
|
||||
echo [3/3] Copying exe to root...
|
||||
copy /Y build\bin\go_win_template.exe go_win_template.exe >nul
|
||||
|
||||
echo.
|
||||
echo [done] go_win_template.exe is ready.
|
||||
echo.
|
||||
pause
|
||||
6
go.mod
6
go.mod
@@ -2,7 +2,10 @@ module go_win_template
|
||||
|
||||
go 1.25.0
|
||||
|
||||
require github.com/wailsapp/wails/v2 v2.16.0
|
||||
require (
|
||||
github.com/wailsapp/wails/v2 v2.16.0
|
||||
golang.org/x/sys v0.46.0
|
||||
)
|
||||
|
||||
require (
|
||||
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 // indirect
|
||||
@@ -31,7 +34,6 @@ require (
|
||||
github.com/wailsapp/mimetype v1.4.1 // indirect
|
||||
golang.org/x/crypto v0.53.0 // indirect
|
||||
golang.org/x/net v0.56.0 // indirect
|
||||
golang.org/x/sys v0.46.0 // indirect
|
||||
golang.org/x/text v0.39.0 // indirect
|
||||
)
|
||||
|
||||
|
||||
6
package-lock.json
generated
Normal file
6
package-lock.json
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "go_win_template",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
||||
Reference in New Issue
Block a user