Repository navigation
feat(#275): hoxay native (GPUI) build flavor for managed install #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,12 @@ INSTALLED_FILE="$STATE_DIR/installed" | |
|
|
||
| [[ -f "$PREV_FILE" ]] || die "no previous release recorded" | ||
| prev="$(cat "$PREV_FILE")" | ||
| built="$(built_app_of "$STATE_DIR/releases/$prev")" | ||
| # The superseded release may predate a flavor switch; prefer the recorded | ||
| # flavor but fall back to whichever artifact the checkout actually has. | ||
| built="$(built_app_of "$STATE_DIR/releases/$prev" "$(current_flavor "$STATE_DIR")")" | ||
| if [[ -z "$built" ]]; then | ||
| built="$(built_app_of "$STATE_DIR/releases/$prev")" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ロールバック後も
修正では、復元が成功した後に、復元した成果物の flavor を 根拠の範囲
|
||
| fi | ||
| [[ -n "$built" ]] || die "previous release $prev has no built .app" | ||
|
|
||
| dst="$APPS_DIR/$(basename "$built")" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現在のflavorではなく、復元対象のflavorで検索してください。
以前のrelease Aに両方の成果物があり、Aをnativeとして使用した後にrelease Bのelectronへ更新した場合、この検索はAのElectron成果物を返します。結果が空ではないため、フォールバックも実行しません。rollbackで以前のnativeインストールを復元できません。
以前のインストールに対応するflavorを保存し、rollbackの検索に使用してください。同一flavor間のrollbackでも、その記録を使用できます。