Commit Graph

192 Commits

Author SHA1 Message Date
Davide
365aa50e7a
Bump version 2024-12-06 15:34:01 +01:00
Davide
bcd7dff4d5
Bump version 2024-12-02 00:23:23 +01:00
Davide
d8f5aed665
Update release notes on bump (#965)
Refine symlink scripts too.
2024-11-29 00:10:22 +01:00
Davide
c0dc2181e3
Complete CI/CD release workflow (#958)
Import current metadata and screenshots.

Fixes #647
2024-11-27 19:10:23 +01:00
Davide
6e3e3e398e
Well 2024-11-27 18:52:46 +01:00
Davide
2de5aad093
Improve bump script with positional arguments (#957)
Get rid of the messy `bump*.sh` scripts variants with a single one with
positional arguments (all optional):

- -v: the new version number (default: current)
- -b: the new build number (default: current + 1)
- -s: the initial build for the CHANGELOG diff (default: latest tag)
- -na: do not update the API (default: do update it)
- -nl: do not update the CHANGELOG (default: present editor)
- -d: dry run

Fixes #948
2024-11-27 17:08:00 +01:00
Davide
54f4364c33
Split test jobs (#855)
Move Core Data tests out of the Library package so that we can still use
the more efficient `swift test` for most tests.

Create a PassepartoutTests target only for tests that require
`xcodebuild`, like Core Data tests.

Eventually:

- PRs only run SwiftPM tests
- Releases run ALL tests with `scan` before `gym`
2024-11-12 18:35:44 +01:00
Davide
e514ade036
Add logic to migrate v2 profiles (#854)
Will add UI separately.

Fixes #642
2024-11-12 16:42:19 +01:00
Davide
fdd8716d2f
Add bump since git ref 2024-11-07 18:35:34 +01:00
Davide
7ac5d3ce23
Omit commit SHA1 from CHANGELOG
Unreadable without monospace.
2024-10-29 16:02:23 +01:00
Davide
2517c4b39b
Revert CHANGELOG on cancel 2024-10-11 19:54:42 +02:00
Davide
f66193cf78
Several fixes in ProfileManager (#685)
- [x] Search not accounted for when reloading profiles
- [x] Remote profile being saved twice
- [x] Add some logging
2024-10-04 20:58:11 +02:00
Davide
51dbc3f246
Add App Intents extension stub (#655)
Just the Xcode metadata, no actual content.
2024-10-01 10:17:20 +02:00
Davide De Rosa
e1922e7535
Include log name in commit regardless 2024-09-30 21:15:50 +02:00
Davide De Rosa
e4268fed24
Bump without altering CHANGELOG 2024-09-30 18:11:11 +02:00
Davide De Rosa
e2a996d878
Edit CHANGELOG after bump 2024-09-30 17:44:34 +02:00
Davide De Rosa
82126a72f1
Strip changelog newlines 2024-09-25 16:43:09 +02:00
Davide De Rosa
396bddc845
Add fastlane Appfile 2024-09-25 00:39:46 +02:00
Davide
bce2694694
Fix lookup of pilot metadata (#601)
- [x] Fetch app version/build without agvtool, unavailable on
ubuntu-latest
- [x] Move TestFlight preface to a repository variable
- [x] Move TestFlight URL to README instead
2024-09-24 17:51:01 +02:00
Davide
a665670cf7
Add job for public beta deployment (#600)
Closes #599
2024-09-24 11:17:52 +02:00
Davide De Rosa
ccc0cd7ce0
Prepend to TestFlight CHANGELOG
Fixes #598
2024-09-23 19:33:21 +02:00
Davide De Rosa
a0b37676a0
Update and split bump scripts 2024-09-23 15:26:42 +02:00
Davide
6cc86e8668
Import v3 code (#597)
Closes #565
2024-09-23 15:02:26 +02:00
Davide De Rosa
a806275d0b
Try fix keychain in CI 2024-09-22 16:02:33 +02:00
Davide De Rosa
32d5ebba6a
Move envs to fastlane directory 2024-09-22 15:55:34 +02:00
Davide De Rosa
a0da930d98
Refactor and test ProductManager (#437)
Carefully drop the StoreKit and Kvitto dependencies for ProductManager
to be testable.

Rebuild test target completely to start writing meaningful tests in
general.
2023-12-20 20:43:39 +01:00
Davide De Rosa
aca431aac5
Run tests on PR (#241) 2022-10-30 11:53:53 +01:00
Davide De Rosa
157f336184 Embed fastlane scripts locally
Drop submodule.
2022-10-04 08:20:06 +02:00
Davide De Rosa
deac70359f Reorganize and fix platform-specific fastlane data
Reuse all iOS metadata in macOS, except the app icon.
2022-04-25 11:21:19 +02:00
Davide De Rosa
1532e8808b [ci skip] Address CI and ASC validation issues
- Skip tests until fixed wg-go issue

- Add golang step

- Set "Apple Development" at project level

- Set Catalyst platform for gym

- Drop TARGET env variable clashing with WireGuardKit

- Disable SwiftGen script phase

- Fix TunnelKit segfault on archive

- Xcode 13.2.1 compatibility
    Fix some issues with @MainActor
    Use #available instead of #unavailable

- Raise timeout from 10 to 15 minutes

- Update beta description

- Tunnel bundle ids cannot have periods

- CFBundleDisplayName required in tunnels
2022-04-13 10:00:29 +02:00
Davide De Rosa
4aba5f46aa Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00
Davide De Rosa
ab2aa03c62 Optimize release workflow
- Enforce 1h keychain lock timeout

- Disable xcpretty again for better debugging

- Drop redundant names of boilerplate actions

- Limit scope of release env variables

- Split release pull and tagging

- Generate markdown release notes in standalone script
2021-12-08 16:10:27 +01:00
Davide De Rosa
ca7de6d6ae Unlock keychain after creation
Might be the reason behind build hanging up in CI, arguably
waiting for a keychain password prompt.

Now, the issue never happened while prepping #207.

When testing the PR though, the testing step was omitted. This
drastically reduced the time between keychain creation and the
build to reach the codesigning phase. By restoring tests in
between, the increase in time would likely incur in keychain
auto-locking up.

- Convert action to keychain creation only

- Restore xcpretty as irrelevant (2a5c231)
2021-12-04 11:52:59 +01:00
Davide De Rosa
2a5c231d3d
Polish release workflow (#207)
* Do run tests in beta

- Test and build app in same lane
- Run tests with swift directly
- Set timeout on build only
- Set GYM_OUTPUT_DIRECTORY inline
- Fix bad build number, broken in db075eb
- Ignore updates to CHANGELOG for testing
- Drop unnecessary exports
- Drop unnecessary test env
- Drop unused PLATFORM .env.* variable

* Work around gym issues in CI

- Set custom build paths for proper clean-up
- Disable xcpretty (seems to hang job)

* Add descriptive names to workflow

- Rename beta to release
- Add job names

* Optimize release workflow

- Use a matrix for multiplatform build
- Only preinstall platform-specific certificates
- Output app version/build early for job reuse
- Do not depend app review on public beta release
- Pull latest commits before pushing/tagging

In release, ci/* scripts require Ruby. Make version an argument
of the commit-release.sh script to fix dependency.

* Import secret to notify external testers or not

* [ci skip] Add CHANGELOG preface in local scripts

* [ci skip] Update links to release via CI
2021-12-03 15:31:19 +01:00
Davide De Rosa
ae1aa1a268 Reorganize project with SwiftPM
- Drop CocoaPods completely
- Make PassepartoutCore a Swift package
- Enable Bitcode to fix OpenSSL linkage (iOS)
- Update CI scripts without CocoaPods
2021-11-06 11:18:55 +01:00
Davide De Rosa
6eee983769 Fix unnecessary API key call in lane 2021-10-16 12:35:04 +02:00
Davide De Rosa
16047d18c9 Skip binary upload in deliver
Upload is done on TestFlight for both iOS and macOS.
2021-10-15 22:17:11 +02:00
Davide De Rosa
6b7ab9a33b Strip DIST_PATH 2021-10-11 17:34:31 +02:00
Davide De Rosa
9539876d23 Strip plenty of fastlane env 2021-10-11 17:23:18 +02:00
Davide De Rosa
0a6894d82c Rewrite beta local/remote flow
- Merge envs
- Explicit lanes in workflow
2021-10-04 22:54:50 +02:00
Davide De Rosa
9d92453110 XXX: Skip precheck
Doesn't work with API key authentication.
2021-02-05 18:08:54 +01:00
Davide De Rosa
37fb68c2e1 XXX: Skip overwriting screenshots 2021-01-30 21:58:22 +01:00
Davide De Rosa
2588101efa Compose some env variables 2021-01-18 17:43:56 +01:00
Davide De Rosa
a0be83a499 Set up to upload Mac build to App Store
- Do not skip .pkg for Mac App Store builds (beta)
- Add store_deploy lane
2021-01-06 18:01:28 +01:00
Davide De Rosa
6c55564dee Fix scripts with platform argument 2021-01-03 22:28:08 +01:00
Davide De Rosa
505d79d9d6 Refactor fastlane configuration/environment
Remember skip_package_pkg for macOS.
2021-01-03 22:28:08 +01:00
Davide De Rosa
d4b7d47498 Merge macOS app and Core into repository
Temporarily drop env and fastlane.
2021-01-03 22:28:07 +01:00
Davide De Rosa
66bdc65359 Set beta release 2021-01-02 11:09:26 +01:00
Davide De Rosa
f74b1dacf7 Add missing translations
See 46b3c7838f
2020-12-28 22:56:50 +01:00
Davide De Rosa
2d2753a04a Add MTU to description 2020-12-28 22:54:53 +01:00