Commit Graph

33 Commits

Author SHA1 Message Date
Elias Naur 01ffdf788d gogio: disable failing JS test
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2025-03-21 13:07:11 +01:00
Elias Naur 51c6d8037b .builds: upgrade debian image to fix a wine compatibility issue
See https://groups.google.com/g/golang-nuts/c/Msg1USaNaqM

Also disable the Apple builder, it no longer builds.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2025-03-21 13:07:11 +01:00
Elias Naur d1bccae359 go.mod,.builds: upgrade minimum Go version to 1.23
Remove a redundant package installation line while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2025-03-21 11:00:04 +01:00
Thomas Bruyelle 37612f9112 gogio: fix #633 wasm_exec.js location for go1.24
Signed-off-by: Thomas Bruyelle <thomas.bruyelle@gmail.com>
2025-03-21 10:47:41 +01:00
Chris Waldon 03a1ada8ac go.*: update to gio v0.8.0
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
v0.8.0
2025-01-14 10:57:56 -05:00
Chris Waldon eb9fbc797e go.*: update to Gio v0.7.1
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
v0.7.1
2024-07-16 20:39:39 -04:00
Chris Waldon d0d7f84d0e go.*: update to Gio v0.7.0
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
v0.7.0
2024-06-17 13:29:39 -04:00
zhengrui 6465f30f98 gogio: [Android] add -targetsdk flag to specify the target SDK level
Fixes: https://todo.sr.ht/~eliasnaur/gio/582
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-06-07 11:36:00 +02:00
Elias Naur ddde16a09e gogio: use buildmode exe directly instead of a Objective-C main function
Using buildmode exe directly is faster to build, avoids the runMain
linker mode hack, and leaves more control to Gio instead of gogio's
synthetic main function.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-06-02 13:15:22 +02:00
Elias Naur c9121dcb8c go.*,gogio: update to Gio 0.6.0
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-04-14 08:34:39 +02:00
Aman Karmani b9c6c3edf0 gogio: [tvOS] bump minSDK to 11.0
References: https://todo.sr.ht/~eliasnaur/gio/567
Signed-off-by: Aman Karmani <aman@tmm1.net>
2024-03-06 21:51:32 +00:00
Elias Naur aa41850405 gogio: support explicit version codes through a fourth version field
As suggested in review, explicitly specifying the version code with
-version major.minor.patch.versioncode provides more flexibility than
the a version code implied from the major, minor, patch fields.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-01-28 11:51:06 -05:00
Elias Naur a24a395e5f gogio: [iOS] link with -lresolv
Since Go 1.20 c-shared object files may lack a reference to the resolv
library and it must be added manually to the linking step.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-01-28 11:51:06 -05:00
Elias Naur 7a117566ca gogio: replace deprecated calls
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-01-28 11:51:06 -05:00
Elias Naur cb72b91a92 gogio: change -version parameter to accept semver versions
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2024-01-15 11:41:30 -05:00
Elias Naur 607a9e37c5 gogio: set gioui.org/app.ID in addition to the log package's appID
app.ID is documented to be set by the gogio tool, but never was.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2023-12-11 18:56:04 -06:00
Chris Waldon 36ef219a61 gogio: skip e2e test on macOS and other unsupported platforms
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
2023-11-20 14:55:53 -05:00
Masala abc34cf117 gogio: add -tags to 'go list' command
Signed-off-by: Masala <masala@riseup.net>
2023-10-01 08:50:17 -05:00
Elias Naur 7cb98d0557 gogio: remove fallback for missing GOOS=ios support in Go <= 1.15
Go 1.16 is already old, and the GOOS detection code fails for me on
Nix:

$ go run gioui.org/cmd/gogio -target ios ../gio-example/kitchen
gogio: go tool dist list failed: go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT

The error message points to a Nix packaging issue, but removing the
fallback is easier to fix.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2023-08-22 10:59:48 -06:00
inkeliz 4128f253e8 gogio: [macOS] add notarizing
Now, it's possible to notarize the app, using -notaryid,
-notarypass and -notaryteamid flags. Those flags are
similar to -signkey and -signpass.

Signed-off-by: inkeliz <inkeliz@inkeliz.com>
2023-07-11 20:11:57 +01:00
inkeliz 42b1cd0f6c gogio: [macOS] fix signature on network-drives
Previously, gogio creates the `.app` and then generates
the signature.

Now, it will generate the `.app` on the temporary folder,
then move it. It also generates one `.zip` folder, which
will be used in the next patch.

Signed-off-by: inkeliz <inkeliz@inkeliz.com>
2023-07-11 19:41:47 +01:00
Chris Waldon 7b925a6c25 ci: use working debian image
Builds.sr.ht is having problems with the debian/testing image because it is
switching which concrete debian release it points at. In the meantime, we can
use use the same release as before by a concrete name.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
2023-07-07 15:41:45 -04:00
Tobias Gesellchen 940364d3e9 gogio: add ldflags support for the macos build
Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
2023-07-01 09:01:52 +02:00
gedw99 0a86898b41 gogio: update keytool path for newer JDK
Signed-off-by: gedw99 <gedw99@gmail.com>
2023-05-02 12:20:08 -06:00
Elias Naur 78da7b9864 go.mod: bump Go to 1.19
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2023-04-14 14:08:09 -06:00
Ilia Demianenko cf291ca3bd gogio: add support for setting app name via command line
This allows the app name to have spaces and other characters not allowed in Go modules.

Signed-off-by: Ilia Demianenko <ilia.demianenko@gmail.com>
2023-04-14 13:50:53 -06:00
Inkeliz 5c14d1ba64 gogio: [MacOS] add MacOS .app compilation
This patch is a initial implementation to make
`.app` file. It supports custom icons and sign.

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
2023-01-27 20:41:37 -06:00
Elias Naur 02068d6340 cmd/svg2gio: add utility for converting SVG files to Gio
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2022-08-18 10:09:36 +02:00
Elias Naur 2edf599beb gogio: [Android] map the wakelock permission to WAKE_LOCK
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2022-08-01 20:19:51 +02:00
a 9768b95616 Revert "gogio: refuse compilation with additional arguments"
Build arguments are passed to the program, which is useful for
platforms where there is no other way to pas them (Android, iOS).

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2022-08-01 20:19:39 +02:00
Chris Waldon ecebd405a7 gogio: implement custom rendering test
This commit adds an end to end test for the custom rendering
use-case. I confirmed that the new test failed when custom
rendering frame lifecycle was broken, and succeeds now.

However, the old X11 tests started failing when the new
one started passing. I'm not sure how they interfere with
one another, but I'm out of time to investigate.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
2022-06-28 21:57:19 +02:00
Inkeliz 35e56c5af9 gogio: refuse compilation with additional arguments
Previously, it was possible to misuse gigio with arguments after the
package, such as `gogio -target android . -o foo.apk`. That cause an
undesired effect, since `-o` is silently ignore by gogio.

Now, any arguments after the package will trigger an error.

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
2022-05-08 14:02:14 +02:00
Elias Naur 6826ef0b64 all: initial import from gio main repository
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2022-04-24 13:46:53 +02:00