Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: Version tag to publish (e.g. v0.1.0-alpha.0)
description: Version tag to publish (e.g. v0.2.0)
required: true
type: string

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Verify package versions match tag
run: |
EXPECTED="${TAG#v}"
for pkg in packages/protocol/package.json packages/ota-nativescript/package.json packages/ota-cli/package.json; do
for pkg in packages/otto-protocol/package.json packages/otto-nativescript/package.json packages/otto-cli/package.json packages/otto-docs/package.json; do
ACTUAL="$(node -p "require('./$pkg').version")"
if [ "$ACTUAL" != "$EXPECTED" ]; then
echo "Version mismatch in $pkg: expected $EXPECTED, got $ACTUAL"
Expand All @@ -62,7 +62,7 @@ jobs:
*-rc.*) CHANNEL="rc" ;;
esac

for ws in @getcortexlabs/ota-protocol @getcortexlabs/ota-nativescript @getcortexlabs/ota-cli; do
for ws in @getcortexlabs/otto-protocol @getcortexlabs/otto-nativescript @getcortexlabs/otto-cli @getcortexlabs/otto-docs; do
if npm view "${ws}@${EXPECTED}" version >/dev/null 2>&1; then
echo "Skipping ${ws}@${EXPECTED} (already published)"
else
Expand All @@ -78,3 +78,11 @@ jobs:
fi
fi
done

- name: Point previous package names to Otto
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm deprecate @getcortexlabs/ota-protocol "Renamed to @getcortexlabs/otto-protocol. See https://github.com/getcortexlabs/otto-sdk/blob/main/MIGRATING.md"
npm deprecate @getcortexlabs/ota-nativescript "Renamed to @getcortexlabs/otto-nativescript. See https://github.com/getcortexlabs/otto-sdk/blob/main/MIGRATING.md"
npm deprecate @getcortexlabs/ota-cli "Renamed to @getcortexlabs/otto-cli; the command is now otto. See https://github.com/getcortexlabs/otto-sdk/blob/main/MIGRATING.md"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ coverage/
*.tsbuildinfo

# NativeScript build artifacts
packages/ota-nativescript/platforms/android/ota_nativescript.aar
packages/otto-nativescript/platforms/android/ota_nativescript.aar
fixtures/*/node_modules/
fixtures/*/package-lock.json
fixtures/*/platforms/
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ dist/
coverage/
package-lock.json
fixtures/
packages/ota-nativescript/platforms/
packages/otto-nativescript/platforms/
docs/.vitepress/cache/
docs/.vitepress/dist/
22 changes: 22 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Moving to Otto 0.2

The public project is now [Otto SDK](https://github.com/getcortexlabs/otto-sdk). The hosted console and documentation are at [otto.getcortexlabs.com](https://otto.getcortexlabs.com).

| Previous name | Otto 0.2 |
| -------------------------------------------- | ---------------------------------------------- |
| `@getcortexlabs/ota-nativescript` | `@getcortexlabs/otto-nativescript` |
| `@getcortexlabs/ota-cli` | `@getcortexlabs/otto-cli` |
| `@getcortexlabs/ota-protocol` | `@getcortexlabs/otto-protocol` |
| `ota-ns` | `otto` |
| `ota.config.json` | `otto.config.json` |
| `createOtaUpdates` | `createOttoUpdates` |
| `Ota*` public types and `OTA_ERROR_CODES` | `Otto*` public types and `OTTO_ERROR_CODES` |
| `packOtaBundle`, `validateEmbeddedOtaConfig` | `packOttoBundle`, `validateEmbeddedOttoConfig` |

Remove the old packages before installing their replacements. Update imports, CI commands and the project configuration filename. Remove the generated `hooks/after-prepare/ota-nativescript-config.mjs` shim if it remains after uninstall, then install the new SDK's hook with `node node_modules/@getcortexlabs/otto-nativescript/hooks/postinstall.mjs .`. Its generated shim is `otto-nativescript-config.mjs`.

Rebuild the native application and generate a fresh per-platform fingerprint baseline before publishing new updates. The package identity participates in the runtime fingerprint, so a package rename is not a JavaScript-only update for an already installed binary. Existing signing keys and Otto workspaces can be reused.

Protocol version 1, its signature domains, error-code values, native bridge identifiers and on-device state layout are unchanged. Existing signed manifests and server directives remain cryptographically valid. Older published packages remain available with deprecation notices pointing to Otto.

Documentation is maintained only in this public repository. `@getcortexlabs/otto-docs` contains the built `/docs/` site and records its source commit in `build-info.json`. The private service pins an exact version; it has no separately maintained documentation source tree.
Loading
Loading