@swipt/cli 0.1.0-nightly.51 → 0.1.0-nightly.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/package.json +4 -4
  3. package/sideload.mjs +13 -1
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2026 by nekohasekai <contact-sagernet@sekai.icu>
1
+ Copyright (C) 2026 by nekohasekai <i@sekai.icu>
2
2
 
3
3
  This program is free software: you can redistribute it and/or modify
4
4
  it under the terms of the GNU General Public License as published by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swipt/cli",
3
- "version": "0.1.0-nightly.51",
3
+ "version": "0.1.0-nightly.53",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,11 +34,11 @@
34
34
  "react-native-worklets": "0.13.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@swipt/api": "0.1.0-nightly.51"
37
+ "@swipt/api": "0.1.0-nightly.53"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@swipt/server-darwin-arm64": "0.1.0-nightly.51",
41
- "@swipt/server-darwin-x64": "0.1.0-nightly.51"
40
+ "@swipt/server-darwin-arm64": "0.1.0-nightly.53",
41
+ "@swipt/server-darwin-x64": "0.1.0-nightly.53"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@bufbuild/protoc-gen-es": "^2.16.0"
package/sideload.mjs CHANGED
@@ -773,8 +773,20 @@ async function launch(device, id, args) {
773
773
  );
774
774
  } catch (error) {
775
775
  if (/trusted by the user/.test(error.message)) {
776
+ await step(`opening Settings on ${device.name}`, () =>
777
+ devicectl([
778
+ "device",
779
+ "process",
780
+ "launch",
781
+ "--device",
782
+ device.udid,
783
+ "--payload-url",
784
+ "prefs:root=General&path=ManagedConfigurationList",
785
+ "com.apple.Preferences",
786
+ ]),
787
+ );
776
788
  console.log(
777
- `its developer is not trusted yet; run "swipt sideload install -d ${device.udid} --team ${id.slice(bundleId.length + 1)}" to trust it and open Swipt automatically, or trust it in Settings › General › VPN & Device Management on ${device.name}`,
789
+ `its developer is not trusted yet; trust it in the Settings page opened on ${device.name}, then open Swipt`,
778
790
  );
779
791
  } else if (/BSErrorCodeDescription = Locked/.test(error.message)) {
780
792
  console.log(`it opens once ${device.name} is unlocked`);