5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-07 18:29:15 +08:00
Commit Graph

169 Commits

Author SHA1 Message Date
fengweiqiang
f4d1d02ded
Build added win32 compatibility (#1238) 2022-03-12 17:29:25 +11:00
stffabi
b02dbfaddf
[v2] NSIS installer support for Windows (#1184)
* [v2] Add support for post build hooks

Currently only supports build-level hooks

* [v2] Improve build assets handling and use single source for manifest generation

The manifest asset files are now a go template and data will be
resolved before they are included into the build output.

Breaking Change: Windows manifest file must be named
“wails.exe.manifest” and doesn’t depend on the project name
anymore.

* [v2, windows] NSIS installer generation
2022-03-02 19:44:31 +11:00
Valentin Trinqué
e6424dc8ab
Update icon.ico file mode (#1154)
* Add os.O_WRONLY to icon.ico to avoid bad file descriptor error

* Wrap errors coming from winres.LoadICO()

If the file exists but is empty, a blunt "Unexpected EOF" is returned, and propagated as is.

This is not super helpful when trying to pin point what's going on.

Wrapping the error helps to locate the problem.
2022-02-16 06:02:45 +11:00
Lea Anthony
f923a431f7 Try to provide help when old xcode tools installed. #1142 2022-02-12 21:12:17 +11:00
Lea Anthony
eb0f22b4ee
Fix appicon bug on Mac. Fixes #1143 2022-02-12 20:48:43 +11:00
Lea Anthony
771594519f
[mac] Better support for multi-builds 2022-02-10 21:41:40 +11:00
Lea Anthony
ec44ca58f1 Better output for build 2022-02-10 21:25:43 +11:00
Lea Anthony
28e31c46c6 Fix output filename for windows builds 2022-02-10 21:11:32 +11:00
Lea Anthony
c2fa4b6103 Support multiple targets for windows 2022-02-10 19:55:04 +11:00
Lea Anthony
4d0b0947d2 Fixes #1070 2022-02-01 19:47:46 +11:00
Lea Anthony
e96410e714 Support -debug for wails build 2022-01-17 21:14:07 +11:00
Lea\Anthony
3c6ed12637 New build flag: -debug 2021-12-29 06:54:52 +11:00
Dario Emerson
44035637f7 Add flag to skip mod tidy 2021-12-12 15:01:16 +01:00
Lea Anthony
008a5c70b9
[mac] Fix linking issue. Removed warnings. 2021-12-11 20:06:42 +11:00
Lea\Anthony
24eaef1604 [mac] fix dynamically linking UTIFramework during cgo build 2021-12-11 19:43:21 +11:00
Lea\Anthony
62adcab722 [mac] try dynamically linking UTIFramework during cgo build 2021-12-11 19:36:17 +11:00
stffabi
fb5bcdc364 [v2] Windows: Add file information for windows 2021-12-01 11:59:46 +01:00
stffabi
e6f42247e7 [v2] Add missing import 2021-12-01 11:51:43 +01:00
stffabi
d43b7b1882 [windows] Add arm64 support 2021-11-30 10:07:27 +01:00
Lea Anthony
e5057e1627
[linux] Fix installing cli 2021-11-29 20:25:11 +11:00
Lea Anthony
b036b8c547
[linux] Support Window start state. fixed warnings. 2021-11-28 08:40:10 +11:00
Lea Anthony
39ca977b18
[linux] basic windowing pt2 2021-11-27 20:36:48 +11:00
Eng Zer Jun
ef8d7d2fd7
refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-25 12:15:43 +08:00
Eng Zer Jun
ae341be638
chore: run go fmt ./... and go mod tidy
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-25 12:14:27 +08:00
stffabi
5e2f25af9b [v2] Add windowsgui ldflag when crosscompiling for windows 2021-11-23 14:16:50 +01:00
Lea Anthony
d569e37b81
[mac] Fix open panel in dev 2021-11-23 21:04:01 +11:00
Lea Anthony
ab1469638f
[linux] get compiling working 2021-11-13 17:06:48 -08:00
Lea Anthony
cc2651c377
[v2] Tidy up 2021-11-08 21:02:54 +11:00
Lea Anthony
e651b9c7ff
[v2] Fix dev build when no dev command in project 2021-11-08 21:01:42 +11:00
Lea Anthony
6e8cbb8e8f
[mac] Ensure minimum osx version 2021-11-04 20:45:22 +11:00
Lea Anthony
333949ee53
[mac] better output text on build 2021-11-02 22:20:44 +11:00
Lea Anthony
a090a689cf
[mac] Fix plist generation 2021-11-02 21:56:35 +11:00
Lea Anthony
6a7118ff6d
[mac] Support cross compiling to windows 2021-10-30 10:44:22 +11:00
Lea Anthony
fd5348d26d
[v2] Fix build output 2021-10-30 10:33:30 +11:00
Lea Anthony
6721e59277 [v2] Fix build command for dev mode 2021-10-28 19:24:05 +11:00
Lea Anthony
00e9eb4b0b [v2] fix: run frontend:dev when using wails dev 2021-10-26 19:20:09 +11:00
Lea Anthony
3022b0bf3f
[mac] Fix binary path in dev 2021-10-09 17:43:34 +11:00
Lea Anthony
3723c41d15
[mac] Fix binary path in build. Remove apple identity 2021-10-09 17:39:51 +11:00
Lea Anthony
9e347bf71f [v2] Generate ipcdev.js and runtimedev.js 2021-10-04 19:58:46 +11:00
Lea Anthony
817952f3d0 [windows] Misc updates for feature parity 2021-09-19 17:14:06 +10:00
Lea Anthony
5585d72c1c [v2] Fix wailsjs generation 2021-09-15 23:20:47 +10:00
Lea Anthony
414b0149f2 [v2] Add forcebuild flag. Tags flag to dev. Refactor dev. 2021-09-09 19:44:06 +10:00
Lea Anthony
a78b9a5b9b [v2] allow no package.json 2021-09-07 07:06:18 +10:00
Lea Anthony
6ade38e0ff [windows] Fix build assets, use 512x512 icon 2021-09-03 20:34:14 +10:00
Lea Anthony
20f82cbde4 [v2] Default project path to cwd 2021-09-03 18:55:44 +10:00
Lea Anthony
8db91df185 [windows] Fix compiled binary path 2021-09-01 06:42:30 +10:00
Lea Anthony
a7c5064a33 [windows-x] Generate runtime wrapper in project, initial model binding, better error handling in calls, assetdir fix, 2021-08-27 21:11:03 +10:00
Lea Anthony
f20ce7411d [windows-x] Add wailsjs directory flag 2021-08-26 23:25:29 +10:00
Lea Anthony
01de76a32e [windows-x] Improve compiler flags (big speedup) 2021-08-26 23:23:30 +10:00
Lea Anthony
58dc917fb7 [windows-x] Startup/Shutdown -> OnStartup/OnShutdown 2021-08-26 20:38:03 +10:00
Lea Anthony
c3c88f5e27 [windows-x] Huge updates to devmode, runtime, build command. 2021-08-22 23:05:22 +10:00
Lea Anthony
8acfeba3e1 [windows-x] Fix compress text output 2021-08-15 21:32:47 +10:00
Lea Anthony
b7cd36921e [windows-x] Experimental -> Default 2021-08-15 21:07:34 +10:00
Lea Anthony
3ac1dcc8d9 [windows-x] Use winres for processing manifest + icon 2021-08-15 20:16:14 +10:00
Lea Anthony
1d6cce7c52 [windows-x] Simplify build assets 2021-08-14 19:35:00 +10:00
Lea Anthony
c2ac4961ef [windows-x] Don't process assets when building 2021-08-14 19:24:29 +10:00
Lea Anthony
5b10ee4b40 [windows-x] Runtime ported. Menu shortcuts. 2021-07-25 20:21:21 +10:00
Lea Anthony
6dbcd4fc45
[v2] New Svelte template. Updates to vanilla. Improved wails generate template 2021-06-30 20:50:39 +10:00
Lea Anthony
995d485a43 [v2] ldflags fix 2021-06-27 04:18:33 +10:00
Lea Anthony
e90f5361be [windows] Support webview2 runtime installation strategies 2021-06-15 21:25:08 +10:00
Lea Anthony
eb2ac99067
[mac] fix compilation bug 2021-06-12 06:56:15 +10:00
Lea Anthony
79147c612e [v2] Big tidy up! 2021-06-12 06:49:38 +10:00
Lea Anthony
3d75ba174b [v2] If using -compiler flag, add go version to filename. 2021-06-11 15:24:42 +10:00
Lea Anthony
d5cbfa6749
[linux] Support wails build and wails dev 2021-06-04 20:36:56 +10:00
Lea Anthony
d2507660c2
[linux] Get CLI working. yum->dnf. doctor improvements. 2021-06-02 20:02:45 +10:00
Lea Anthony
93d9b61366 [windows] Fix bridge payload for 'wails dev' 2021-05-30 20:03:01 +10:00
Travis McLane
31cf04a944
fix shadowed err (#718) 2021-05-19 05:55:05 +10:00
Lea Anthony
08f4476087 Support for upx and more go:embed. 2021-05-18 21:25:16 +10:00
Lea Anthony
8be2a39daf [windows] Generate syso file for windows builds 2021-05-17 19:51:43 +10:00
Lea Anthony
e9deb248f9 Move assets -> build dir. Bundle assets in CLI binary. 2021-05-13 20:12:19 +10:00
Lea Anthony
62bfe953a1 [windows] Add CGO_CXXFLAGS 2021-04-30 16:00:09 +10:00
Lea Anthony
67611d5ae7 [windows] Support -compress flag for UPX compression 2021-04-29 21:53:17 +10:00
Lea Anthony
2881a5bc0d [windows] output required DLLs on build 2021-04-28 15:44:29 +10:00
Lea Anthony
5e96bb5a32 [windows] Improve wails doctor 2021-04-17 13:40:27 +10:00
Lea Anthony
5d444cd6dd
Support user tags 2021-04-04 13:42:48 +10:00
Lea Anthony
1b0193161c
Improvements for handling Info.plist 2021-04-04 05:14:16 +10:00
Lea Anthony
86c1ea5e6a
Initial support for compression 2021-03-27 20:59:14 +11:00
Lea Anthony
86b4a4f2f5
Don't clean directory when doing universal builds 2021-03-26 18:29:28 +11:00
Lea Anthony
fd96ebc050
Better verbose output 2021-03-26 18:12:42 +11:00
Lea Anthony
50c219307f
Add clean flag 2021-03-26 14:10:25 +11:00
Lea Anthony
6eb4b0a419 Fix packaging universal builds 2021-03-25 21:12:29 +11:00
Lea Anthony
41d2158375 Support building arm64 & universal binaries. 2021-03-25 21:12:29 +11:00
Lea Anthony
92ebf506dd Get app compiling 2021-03-20 18:32:09 +11:00
Lea Anthony
bbf4dde43f
Support upserting environment variables 2021-03-12 23:41:13 +11:00
Lea Anthony
2d1b2c0947
Guard app signing 2021-02-28 15:29:15 +11:00
Lea Anthony
f48d7f8f60
Add support for -sign 2021-02-27 20:32:29 +11:00
Lea Anthony
bb8e848ef6
Run go mod tidy before compilation 2021-02-27 14:03:54 +11:00
Lea Anthony
e4b03f510b
First step to bridge support 2021-02-06 21:50:21 +11:00
Lea Anthony
064ff3b65e
Change build wording 2021-01-26 06:38:54 +11:00
Lea Anthony
f40899821f
Support ToolTips 2021-01-23 16:14:48 +11:00
Lea Anthony
15a273458e
Ensure build directory exists when building 2021-01-13 23:46:47 +11:00
Lea Anthony
8053357d99
Support Menu updates! 2021-01-11 11:21:28 +11:00
Lea Anthony
3a2d01813a
Don't inline functions in debug builds 2021-01-10 20:32:25 +11:00
Lea Anthony
2a8ce96830
Remove custom asset bundling. Use Go's embed instead! 2021-01-05 14:28:18 +11:00
Lea Anthony
9be539cfb8
Force rebuild each time to pick up .h changes Tidy up go.mod. Bump version. 2021-01-05 14:01:53 +11:00
Lea Anthony
d2020fedda
Move generated assets to build dir. Precompile platform runtime. 2021-01-05 13:01:03 +11:00
Lea Anthony
f384fc7562
Add -k flag for debug purposes 2021-01-03 05:02:48 +11:00
Lea Anthony
44c55d06a6
Create dialog dir if missing 2021-01-02 13:37:58 +11:00
Lea Anthony
a54d875ceb
Fix misc build issues 2021-01-01 13:00:38 +11:00
Lea Anthony
657df8bdda
Use assets dir in project for all application assets 2021-01-01 12:53:06 +11:00