Changeset 730


Ignore:
Timestamp:
Mar 21, 2013, 6:25:39 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.99w:

  • Self-update invocation
Location:
java
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • java/ProgramSettings/.classpath

    r726 r730  
    33        <classpathentry kind="src" path="src"/>
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
    5         <classpathentry kind="lib" path="/ThirdPartyLibs/xstream-1.4.3.jar"/>
     5        <classpathentry kind="lib" path="/_ThirdPartyLibs/xstream-1.4.3.jar"/>
    66        <classpathentry kind="output" path="bin"/>
    77</classpath>
  • java/installer2/.classpath

    r720 r730  
    33        <classpathentry kind="src" path="src"/>
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
    5         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/betterbeansbinding-core-1.3.0.jar"/>
    6         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/betterbeansbinding-el-1.3.0.jar"/>
    7         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/betterbeansbinding-swingbinding-1.3.0.jar"/>
    8         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/commons-lang-2.4.jar"/>
    9         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/javabuilder-core-1.1.0.jar"/>
    10         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/javabuilder-swing-1.1.0.jar"/>
    11         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/jsr305-1.3.7.jar"/>
    12         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/miglayout-3.7.1.jar"/>
    13         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/slf4j-api-1.6.1.jar"/>
    14         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/slf4j-simple-1.6.1.jar"/>
    15         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/swingbuilder/snakeyaml-1.7.jar"/>
    16         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/JSON-java.jar"/>
    17         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/httpclient/httpclient-4.2.2.jar"/>
    18         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/httpclient/httpcore-4.2.2.jar"/>
    19         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/httpclient/commons-logging-1.1.1.jar"/>
    20         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/xstream-1.4.3.jar"/>
    21         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/macify.jar"/>
    22         <classpathentry kind="lib" path="/home/ci/Development/Oni/_Libraries/commons-io-2.4.jar">
    23                 <attributes>
    24                         <attribute name="javadoc_location" value="jar:platform:/resource/OniJavaLibraries/commons-io-2.4-javadoc.jar!/"/>
    25                 </attributes>
    26         </classpathentry>
    275        <classpathentry combineaccessrules="false" kind="src" path="/ProgramSettings"/>
    286        <classpathentry combineaccessrules="false" kind="src" path="/PlatformTools"/>
     7        <classpathentry kind="lib" path="/_ThirdPartyLibs/httpclient/commons-logging-1.1.1.jar"/>
     8        <classpathentry kind="lib" path="/_ThirdPartyLibs/httpclient/httpclient-4.2.2.jar"/>
     9        <classpathentry kind="lib" path="/_ThirdPartyLibs/httpclient/httpcore-4.2.2.jar"/>
     10        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/betterbeansbinding-core-1.3.0.jar"/>
     11        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/betterbeansbinding-el-1.3.0.jar"/>
     12        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/betterbeansbinding-swingbinding-1.3.0.jar"/>
     13        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/commons-lang-2.4.jar"/>
     14        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/javabuilder-core-1.1.0.jar"/>
     15        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/javabuilder-swing-1.1.0.jar"/>
     16        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/jsr305-1.3.7.jar"/>
     17        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/miglayout-3.7.1.jar"/>
     18        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/slf4j-api-1.6.1.jar"/>
     19        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/slf4j-simple-1.6.1.jar"/>
     20        <classpathentry kind="lib" path="/_ThirdPartyLibs/swingbuilder/snakeyaml-1.7.jar"/>
     21        <classpathentry kind="lib" path="/_ThirdPartyLibs/commons-io-2.4.jar"/>
     22        <classpathentry kind="lib" path="/_ThirdPartyLibs/JSON-java.jar"/>
     23        <classpathentry kind="lib" path="/_ThirdPartyLibs/macify.jar"/>
     24        <classpathentry kind="lib" path="/_ThirdPartyLibs/xstream-1.4.3.jar"/>
     25        <classpathentry combineaccessrules="false" kind="src" path="/SVNAccess"/>
    2926        <classpathentry kind="output" path="bin"/>
    3027</classpath>
  • java/installer2/locales/net/oni2/aeinstaller/localization/Global_de.properties

    r658 r730  
    1010offlineModeStartup.title=Offline-Modus
    1111offlineModeStartup.text=Es konnte keine Verbindung zum ModDepot hergestellt werden.\nAEI wird im Offline-Modus ausgeführt.\nAktualisierungen oder Downloads sind nicht möglich.
     12
     13aeiUpdateAvailable.title=Aktualisierung verfügbar!
     14aeiUpdateAvailable.text=Eine Aktualisierung für den AEInstaller ist verfügbar.\nBitte jetzt mit einem Klick auf Ja updaten.
  • java/installer2/src/net/oni2/aeinstaller/AEInstaller.properties

    r720 r730  
    11appname=AE Installer 2
    2 appversion=0.99v
     2appversion=0.99w
  • java/installer2/src/net/oni2/aeinstaller/AEInstaller2.java

    r720 r730  
    3232import net.oni2.platformtools.PlatformInformation;
    3333import net.oni2.platformtools.PlatformInformation.Platform;
     34import net.oni2.platformtools.applicationinvoker.ApplicationInvoker;
    3435import net.oni2.platformtools.applicationinvoker.DotNet;
     36import net.oni2.platformtools.applicationinvoker.EExeType;
     37import net.oni2.svnaccess.SVN;
    3538
    3639import org.javabuilders.swing.SwingJavaBuilder;
     
    6467                }
    6568        }
    66        
     69
    6770        private static void initBundles() {
    68                 File localesDir = CaseInsensitiveFile.getCaseInsensitiveFile(Paths.getInstallerPath(), "locales");
     71                File localesDir = CaseInsensitiveFile.getCaseInsensitiveFile(
     72                                Paths.getInstallerPath(), "locales");
    6973                if (localesDir.isDirectory())
    7074                        addClassPath(localesDir);
     
    121125                        }
    122126                }
    123                
     127
    124128                initBundles();
    125129
     
    173177                System.out.println("ValidPath: " + Installer.verifyRunningDirectory());
    174178                System.out.println("Platform:  " + PlatformInformation.getPlatform());
    175                 System.out.println("Architect: " + PlatformInformation.getArchitecture());
     179                System.out.println("Architect: "
     180                                + PlatformInformation.getArchitecture());
    176181                System.out.println(".NET:      " + DotNet.isInstalled());
    177182                System.out.println("OniSplit:  " + OniSplit.isOniSplitInstalled());
     
    241246                SettingsManager.getInstance().setOfflineMode(offline);
    242247
     248                if (!offline) {
     249                        SVN svn = new SVN();
     250                        try {
     251                                int x = svn.checkSVN("http://svn.aei.oni2.net",
     252                                                new File(Paths.getPrefsPath(), "bin"));
     253                                if (x > 0) {
     254                                        // Update available
     255                                        int res = JOptionPane.showConfirmDialog(null,
     256                                                        globalBundle.getString("aeiUpdateAvailable.text"),
     257                                                        globalBundle.getString("aeiUpdateAvailable.title"),
     258                                                        JOptionPane.YES_NO_OPTION,
     259                                                        JOptionPane.INFORMATION_MESSAGE);
     260                                        if (res == JOptionPane.YES_OPTION) {
     261                                                File updater = new File(Paths.getInstallerPath(),
     262                                                                "AEInstaller2Updater.jar");
     263                                                ApplicationInvoker.execute(EExeType.JAR, null, updater,
     264                                                                null);
     265                                                return;
     266                                        }
     267                                } else if (x == 0) {
     268                                        // Up to date
     269                                } else if (x < 0) {
     270                                        // No WC at given path
     271                                }
     272                        } catch (Exception e) {
     273                                e.printStackTrace();
     274                        }
     275                }
     276
    243277                SwingUtilities.invokeLater(new Runnable() {
    244278                        public void run() {
  • java/installer2/src/net/oni2/aeinstaller/backend/Paths.java

    r720 r730  
    3636                        return new File(wd);
    3737                } else {
    38                         String jarPath = SettingsManager.class.getProtectionDomain()
     38                        String jarPath = Paths.class.getProtectionDomain()
    3939                                        .getCodeSource().getLocation().getPath();
    4040                        String decodedPath = null;
     
    4444                                e.printStackTrace();
    4545                        }
    46                         return new File(decodedPath).getParentFile();
     46                        return new File(decodedPath).getParentFile().getParentFile();
    4747                }
    4848        }
  • java/installer2/src/net/oni2/aeinstaller/localization/Global.properties

    r658 r730  
    1010offlineModeStartup.title=Offline mode
    1111offlineModeStartup.text=Connection to the ModDepot could not be established.\nAEI will run in offline mode.\nUpdates or installation of mods not already downloaded will not be possible.
     12
     13aeiUpdateAvailable.title=Update available!
     14aeiUpdateAvailable.text=An update for the AEInstaller is available.\nPlease update now by selecting Yes.
Note: See TracChangeset for help on using the changeset viewer.