Prechádzať zdrojové kódy

Use newest (unreleased) otr.js so that we can specify paths ourselves

JC Brand 11 rokov pred
rodič
commit
8f14c32b48
4 zmenil súbory, kde vykonal 8 pridanie a 3 odobranie
  1. 1 1
      Gruntfile.js
  2. 1 1
      bower.json
  3. 1 1
      converse.js
  4. 5 0
      main.js

+ 1 - 1
Gruntfile.js

@@ -96,7 +96,7 @@ module.exports = function(grunt) {
         var done = this.async();
         var child_process = require('child_process');
         var exec = child_process.exec;
-        exec('./node_modules/.bin/bower update && cd ./components/strophe && make normal',
+        exec('./node_modules/.bin/bower update && cd ./components/strophe && make normal && cd ../otr && npm install && make build',
              function (err, stdout, stderr) {
                 if (err) {
                     grunt.log.write('build failed with error code '+err.code);

+ 1 - 1
bower.json

@@ -17,7 +17,7 @@
     "strophe.vcard": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/vcard/strophe.vcard.js",
     "strophe.disco": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/disco/strophe.disco.js",
     "strophe.muc": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/muc/strophe.muc.js",
-    "otr": "~0.2.5",
+    "otr": "https://github.com/arlolra/otr.git#e6cc5c247569df1118de8dd86ee57c2d1b3ce91e",
     "crypto-js": "~3.1.2",
     "almond": "~0.2.6"
   },

+ 1 - 1
converse.js

@@ -13,7 +13,7 @@
     }
     if (typeof define === 'function' && define.amd) {
         define("converse", [
-            "components/otr/build/otr",
+            "otr",
             "crypto.aes",
             "locales",
             "backbone.localStorage",

+ 5 - 0
main.js

@@ -11,6 +11,11 @@ require.config({
         "strophe.roster": "components/strophe.roster/index",
         "strophe.vcard": "components/strophe.vcard/index",
         "strophe.disco": "components/strophe.disco/index",
+        "otr": "components/otr/build/otr",
+        "bigint": "components/otr/build/dep/bigint",
+        "crypto": "components/otr/build/dep/crypto",
+        "eventemitter": "components/otr/build/dep/eventemitter",
+        "salsa20": "components/otr/build/dep/salsa20",
         "crypto.aes": "components/crypto-js/build/rollups/aes"
     },