11 Commits
Author SHA1 Message Date
creamlike1024 d276de5ae7 build: find cJSON's license in libeuicc's build directory, where it moved 2026-11-27 00:04:54 +08:00
creamlike1024 2ee82bbdde build: build libeuicc outside the directory the linker searches 2026-11-24 15:22:49 +08:00
creamlike1024 2b880b0e60 ci: build the Android APK, signed with the upload key when given
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.
2026-11-23 15:28:23 +08:00
creamlike1024 76d210ce48 build(android): add the Android build script and version codes
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.
2026-11-22 21:04:02 +08:00
creamlike1024 2ebf1978a3 build: ship go-ccid's source and license with releases
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.
2026-11-22 21:03:27 +08:00
creamlike1024 54fc1c7dc2 ci: tag releases vx.y.z, as mygo's updater expects
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.
2026-11-21 23:48:47 +08:00
creamlike1024 e9c2b889f3 ci: take the version from git tags, build every push
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.
2026-11-21 23:44:47 +08:00
creamlike1024 cb36fe502b build: upgrade mygo to v0.10.0, add RPM/PKGBUILD, drop WebView2
- 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).
2026-11-21 23:44:33 +08:00
creamlike1024 f1ad19980c ci: Set PIC explicitly in libeuicc build 2026-11-10 14:08:24 +08:00
creamlike1024 89062ef6ae feat: Disable LTO in libeuicc build 2026-11-10 13:54:03 +08:00
creamlike1024 45ebb54ce6 refactor: libeuicc LPA with a native mygo GUI 2026-11-09 21:18:57 +08:00