A build-android job builds the arm64 APK beside the other platforms and
ships it with releases. It signs it with the upload key of the secrets
ANDROID_KEYSTORE_BASE64, ANDROID_KEY_ALIAS, ANDROID_KEYSTORE_PASSWORD
and ANDROID_KEY_PASSWORD when they are set, and else warns that the
debug key signed it.
scripts/with-version.sh puts the key in mygo.json for the build, as
EASYLPAC_ANDROID_KEYSTORE and EASYLPAC_ANDROID_KEY_ALIAS name it, which
local builds use too; mygo reads the passwords from the environment.
Checked with a throwaway key, which apksigner found on the APK. The
tests also run with -tags phone, and the checkouts take go-ccid.
scripts/build-android.sh builds the arm64 APK and AAB with a JDK 17,
and build-libeuicc.sh builds for Android with the NDK.
mygo took a snapshot such as 0.9.2.r12.g... to be versionCode 900,
below 0.9.2's 902, which Android refuses as a downgrade.
android-version-code.sh gives a code that grows with the versions of
version.sh, and with-version.sh puts it in mygo.json for the build.
go.mod builds go-ccid from its submodule, which git archive leaves out:
the source tarball, which the LGPL asks for so that libeuicc can be
replaced, did not build. It now holds go-ccid's tree, and the release
its MIT license.
mygo's updater takes a release's tag to be tagPrefix + version, and
tagPrefix cannot be empty (it defaults to "v"): the update archives,
the prerelease channel and delta updates are found by v<version>.
Release tags are therefore vx.y.z[-pre] from now on, and only those
trigger a release build. scripts/version.sh drops the "v" (the
version stays 0.9.3) and still counts the older tags without it, as
0.9.2; EASYLPAC_VERSION also takes a tag name. The READMEs show the
new tags.
The version is no longer kept by hand in mygo.json, which now says
0.0.0-dev. scripts/version.sh computes it from the git tags: a release
tag x.y.z[-pre] is the version, a later commit a snapshot such as
0.9.2.r12.ga4e79e0 (with .dirty for uncommitted changes), which sorts
after its tag and before the next release for dpkg, rpm and pacman,
and is the pkgver of an Arch -git package as it is. The snapshot has
no "+", which mygo turns into "~" for dpkg. EASYLPAC_VERSION overrides
it. scripts/with-version.sh writes the version into mygo.json for one
command and restores the file; the build scripts and CI build through
it.
The release workflow becomes build.yaml: pushes to master and
release/**, pull requests and manual runs are tested and built, with
the packages as artifacts; a pushed release tag also publishes the
GitHub Release (a pre-release for x.y.z-*). Other tags no longer
trigger it. The READMEs describe the versions and the release steps.
- Upgrade github.com/egoist/mygo from v0.8.3 to v0.10.0 and pin the
same CLI version in the build scripts and the release workflow.
- Linux: give linux.depends per package format, so the RPM and the
PKGBUILD that mygo now writes keep the pcsc-lite dependencies (mygo
has no mapping for libpcsclite1/pcscd and dropped them), and upload
the .rpm, the PKGBUILD and its icons with the release.
- Windows: build with mygo_nowebview; every window is native UI, so
the app needs no WebView2 Runtime (about 370 KB smaller).