mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #601 from nantas/master
[unpack protocol] replace engine url to use unpack:// protocol
This commit is contained in:
@@ -30,7 +30,7 @@ var StudioComponent = cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
editor: CC_EDITOR && {
|
||||
inspector: 'app://engine/extensions/cocostudio/editor/studio-component.html'
|
||||
inspector: 'unpack://engine/extensions/cocostudio/editor/studio-component.html'
|
||||
},
|
||||
|
||||
properties: CC_EDITOR && {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<template>
|
||||
<inspector-meta-header
|
||||
target="[[target]]"
|
||||
icon="app://engine/extensions/spine/editor/spine-asset.png"
|
||||
icon="unpack://engine/extensions/spine/editor/spine-asset.png"
|
||||
dirty="{{dirty}}"
|
||||
>
|
||||
</inspector-meta-header>
|
||||
|
||||
+2
-5
@@ -3,16 +3,13 @@ var Path = require('fire-path');
|
||||
describe('core level', function () {
|
||||
it ('should success', function () {
|
||||
// simple init
|
||||
Editor.require( 'app://engine-framework/src' );
|
||||
Editor.require( 'unpack://engine-framework/src' );
|
||||
|
||||
// simple init
|
||||
if ( !Editor.assets ) Editor.assets = {};
|
||||
if ( !Editor.metas ) Editor.metas = {};
|
||||
if ( !Editor.inspectors ) Editor.inspectors = {};
|
||||
|
||||
// init engine-framework
|
||||
Editor.require('app://engine-framework');
|
||||
|
||||
// init asset-db
|
||||
var AssetDB = Editor.require('app://asset-db');
|
||||
Editor.assetdb = new AssetDB({
|
||||
@@ -20,6 +17,6 @@ describe('core level', function () {
|
||||
'library': 'library',
|
||||
});
|
||||
|
||||
Editor.require( 'app://engine' );
|
||||
Editor.require( 'unpack://engine' );
|
||||
});
|
||||
});
|
||||
|
||||
+2
-2
@@ -23,13 +23,13 @@
|
||||
</script>
|
||||
|
||||
<!-- cocos html5 -->
|
||||
<script type="text/javascript" src="app://engine/bin/cocos2d-js.js"></script>
|
||||
<script type="text/javascript" src="unpack://engine/bin/cocos2d-js.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Testing Cocos2d-JS</h1>
|
||||
<canvas id="gameCanvas" width="400" height="400"></canvas>
|
||||
|
||||
<script type="text/javascript" src="app://engine/test/page/index.js"></script>
|
||||
<script type="text/javascript" src="unpack://engine/test/page/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -26,6 +26,6 @@ describe('test cocos', function () {
|
||||
show: true,
|
||||
resizable: false,
|
||||
});
|
||||
win.load('app://engine/test/page.html');
|
||||
win.load('unpack://engine/test/page.html');
|
||||
});
|
||||
});
|
||||
|
||||
+1
-3
@@ -8,8 +8,6 @@ window.getAssetsPath = function () {
|
||||
};
|
||||
|
||||
|
||||
// engine framework
|
||||
Editor.require('app://engine-framework/src');
|
||||
|
||||
Editor.isRuntime = true;
|
||||
|
||||
@@ -23,7 +21,7 @@ Editor.assets = {};
|
||||
Editor.inspectors = {};
|
||||
|
||||
// cocos
|
||||
Editor.require('app://engine');
|
||||
Editor.require('unpack://engine');
|
||||
|
||||
// init asset library
|
||||
cc.AssetLibrary.init({
|
||||
|
||||
Reference in New Issue
Block a user