XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(migrate): Add v1->v2 migration

Signed-off-by: Shiloh Fen <shiloh@shilohfen.com>

matrixfurry.com 66f8525a 51513265

verified
+37 -1
+35
src/atomic-xr/_migrate.nu
··· 1 + # SPDX-License-Identifier: AGPL-3.0-only 2 + # Copyright (c) 2025 Shiloh Fen <shiloh@shilohfen.com> 3 + 4 + use std log 5 + use envision.nu 6 + 7 + # Migrate from version 1.x.x to 2.x.x 8 + export def "v1" [] { 9 + log info "Starting migration: 1.x.x -> 2.x.x" 10 + 11 + log info "Updating Envision config" 12 + do { 13 + const envision_config_path = "~/.config/envision/envision.json" | path expand 14 + 15 + let envision_config = try {open $envision_config_path} catch { 16 + log info "Envision config not found, no config migration nessesary" 17 + return 18 + } 19 + let plugins = $envision_config.plugins 20 + | reject -o ...("cc.dwagon.atomic-xr.{wlx-overlay-s,motoc,oscavmgr.project-babble,oscavmgr.wivrn}" | str expand) 21 + 22 + $envision_config 23 + | merge {plugins: $plugins} 24 + | save -f $envision_config_path 25 + log info "Envision plugins unregistered successfully" 26 + } 27 + 28 + if ("~/.local/bin/envision" | path exists) { 29 + envision upgrade 30 + } else { 31 + log info "Envision is not installed, no upgrade nessesary" 32 + } 33 + 34 + log info "Migration completed: 1.x.x -> 2.x.x" 35 + }
+1
src/atomic-xr/mod.nu
··· 2 2 # Copyright (c) 2025 Shiloh Fen <shiloh@shilohfen.com> 3 3 4 4 export use _debug.nu 5 + export use _migrate.nu 5 6 export use envision.nu 6 7 export use flatpak.nu 7 8 export use homebrew.nu
+1 -1
src/axr.nu.in
··· 36 36 37 37 def print-functions [] { 38 38 get-functions 39 - | where $it not-has "_debug" 39 + | where not ($it starts-with "_") 40 40 | each {|function| 41 41 let help = help atomic-xr $function | lines 42 42