aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin
diff options
context:
space:
mode:
authorSylvain CECCHETTO <cecchetto.sylvain@me.com>2020-10-28 11:51:54 +0100
committerSylvain CECCHETTO <cecchetto.sylvain@me.com>2020-10-28 11:51:54 +0100
commitd45c30f1ba70f4a87ca54c32d0da12fd3728abc4 (patch)
treee27dcf5dd073c95527a45ec710b65a163d97046c /tools/darwin
parent5b2911371eccd8b9bacaa9eb61cd08575a59f84c (diff)
[packaging][iOS] Remove XBMC migration script
Kodi is Kodi since "XBMC 14", we can assume that no one will update from XBMC 13 to Kodi 19 on iOS.
Diffstat (limited to 'tools/darwin')
-rw-r--r--tools/darwin/packaging/darwin_embedded/migrate_to_kodi.sh.in30
-rw-r--r--tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in3
2 files changed, 0 insertions, 33 deletions
diff --git a/tools/darwin/packaging/darwin_embedded/migrate_to_kodi.sh.in b/tools/darwin/packaging/darwin_embedded/migrate_to_kodi.sh.in
deleted file mode 100644
index be9155fa8c..0000000000
--- a/tools/darwin/packaging/darwin_embedded/migrate_to_kodi.sh.in
+++ /dev/null
@@ -1,30 +0,0 @@
-APP_NAME=@APP_NAME@
-XBMC_HOME="/var/mobile/Library/Preferences/XBMC"
-APP_HOME="/var/mobile/Library/Preferences/@APP_NAME@"
-
-
-function needs_kodi_migration () {
- #check if there is an old XBMC folder to migrate
- if test -d "$XBMC_HOME" && test ! -d "$APP_HOME"
- then
- return "1";
- else
- return "0";
- fi
-}
-
-function migrate_to_kodi () {
- echo "moving settings from $XBMC_HOME to $APP_HOME"
- mv $XBMC_HOME $APP_HOME
- chown -R mobile.mobile $APP_HOME
- echo "Migration complete"
- touch $APP_HOME/.kodi_data_was_migrated
-}
-
-needs_kodi_migration
-NEEDS_MIGRATION=$?
-if [ "$NEEDS_MIGRATION" == "1" ]
-then
- echo "This is the first time you install @APP_NAME@ and we detected that you have an old XBMC configuration. Your XBMC configuration will now be migrated to @APP_NAME@ by moving the settings folder. If you ever want to go back to XBMC please backup /var/mobile/Library/Preferences/@APP_NAME@ after this installation has finished and rename it to XBMC in case you downgrade to XBMC."
- migrate_to_kodi
-fi
diff --git a/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in b/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
index 78cb87aada..0d318be595 100644
--- a/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
+++ b/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
@@ -96,9 +96,6 @@ chmod +x $DIRNAME/$PACKAGE/DEBIAN/prerm
# postinst: nothing for now.
echo "#!/bin/sh" > $DIRNAME/$PACKAGE/DEBIAN/postinst
echo "chown -R mobile:mobile /Applications/@APP_NAME@.app" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
-if [ "@PLATFORM@" != "appletvos" ]; then
- cat $DIRNAME/migrate_to_kodi.sh >> $DIRNAME/$PACKAGE/DEBIAN/postinst
-fi
echo "/usr/bin/uicache" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
echo "echo 'finish:respringing ...'" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
chmod +x $DIRNAME/$PACKAGE/DEBIAN/postinst