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>
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>
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>
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>
gogio: add ldflags support for the macos build
Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
gogio: update keytool path for newer JDK
Signed-off-by: gedw99 <gedw99@gmail.com>
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>
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>
cmd/svg2gio: add utility for converting SVG files to Gio
Signed-off-by: Elias Naur <mail@eliasnaur.com>
gogio: [Android] map the wakelock permission to WAKE_LOCK
Signed-off-by: Elias Naur <mail@eliasnaur.com>
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>
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>
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>
all: initial import from gio main repository
Signed-off-by: Elias Naur <mail@eliasnaur.com>