diff options
author | Sylvain CECCHETTO <cecchetto.sylvain@me.com> | 2020-10-29 08:08:29 +0100 |
---|---|---|
committer | Sylvain CECCHETTO <cecchetto.sylvain@me.com> | 2020-10-29 08:08:29 +0100 |
commit | af64d306361bbb6f87d562d6d083910132aca837 (patch) | |
tree | 123736b7eaab434b6aec9a2ac3cefd12d49747f1 /tools/darwin | |
parent | 0b7173651ee29d667499c9d4fbb9964bac230399 (diff) |
[macOS] Remove XBMC migration step
Kodi is Kodi since "XBMC 14", we can assume that
no one will update from XBMC 13 to Kodi 19.
Diffstat (limited to 'tools/darwin')
-rwxr-xr-x | tools/darwin/runtime/preflight | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tools/darwin/runtime/preflight b/tools/darwin/runtime/preflight index e30336630a..d9311f5d1e 100755 --- a/tools/darwin/runtime/preflight +++ b/tools/darwin/runtime/preflight @@ -16,19 +16,6 @@ sub get_extras { return; } -sub get_xbmc_home { - my $os = get_os(); - my $home = get_home(); - return if !defined $home; - if ( $os eq "osx" ) { - return $home."/Library/Application Support/XBMC"; - } - elsif ( $os eq "linux" ) { - return $home."/.xbmc"; - } - return; -} - sub get_app_home { my $os = get_os(); my $home = get_home(); @@ -161,16 +148,6 @@ sub first_app_version_run() { return; } -sub needs_kodi_migration() { - my $xbmchome = get_xbmc_home(); - my $apphome = get_app_home(); - #check if there is an old XBMC folder to migrate - if ( -d "$xbmchome" && ! -d "$apphome" ) { - return 1; - } - return; -} - sub setup_default_app() { my $extras = get_extras(); my $apphome = get_app_home(); @@ -196,19 +173,6 @@ sub setup_version_app() { #TODO } -#migration from XBMC to Kodi -sub migrate_to_kodi() { - my $xbmchome = get_xbmc_home(); - my $apphome = get_app_home(); - print "mv $xbmchome $apphome"; - `mv "$xbmchome" "$apphome"`; - `touch -f "$apphome/.kodi_data_was_migrated"`; -} - -if (needs_kodi_migration()) { - migrate_to_kodi(); -} - if (first_app_run()) { setup_default_app(); } |