Update deploy and deploy_sdk for the new package: world.

Before this change Sky would hit 404s when trying to
load examples from domokit.github.io.

I also added a separate sky_home and updated the default
url to point to sky_home instead of home.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1016143002
This commit is contained in:
Eric Seidel 2015-03-18 13:00:46 -07:00
parent 8879e082ef
commit d5c07f8564
4 changed files with 15 additions and 9 deletions

View File

@ -21,7 +21,7 @@ public class SkyDemoActivity extends SkyActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String url = "https://domokit.github.io/home";
String url = "https://domokit.github.io/sky_home";
Intent intent = getIntent();
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
Uri skyUri = intent.getData();

View File

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/input.dart';
import 'package:sky/framework/fn.dart';
import 'package:sky/framework/components/input.dart';
class InputApp extends App {
Node build() {

View File

@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/button.dart';
import '../../framework/components/popup_menu.dart';
import 'package:sky/framework/fn.dart';
import 'package:sky/framework/components/button.dart';
import 'package:sky/framework/components/popup_menu.dart';
class WidgetsApp extends App {
static final Style _menuStyle = new Style('''

View File

@ -85,6 +85,11 @@ def link(from_root, to_root, filter_func=None):
os.symlink(from_root, to_root)
def make_relative_symlink(source, link_name):
rel_source = os.path.relpath(source, os.path.dirname(link_name))
os.symlink(rel_source, link_name)
def confirm(prompt):
response = raw_input('%s [N]|y: ' % prompt)
return response and response.lower() == 'y'
@ -117,6 +122,7 @@ def main():
default=os.path.join(SRC_ROOT, DEFAULT_REL_BUILD_DIR))
parser.add_argument('--non-interactive', action='store_true')
parser.add_argument('--dev-environment', action='store_true')
parser.add_argument('--commit', action='store_true')
parser.add_argument('--fake-pub-get-into', action='store', type=str)
args = parser.parse_args()
@ -129,7 +135,7 @@ def main():
# These are separate ideas but don't need a separate flag yet.
use_links = args.dev_environment
skip_apks = args.dev_environment
should_commit = not args.dev_environment
should_commit = args.commit
generate_licenses = not args.dev_environment
# We save a bunch of time in --dev-environment mode by symlinking whole
@ -201,9 +207,9 @@ def main():
if args.fake_pub_get_into:
packages_dir = os.path.abspath(args.fake_pub_get_into)
ensure_dir_exists(packages_dir)
os.symlink(sdk_path('packages/mojo/lib'),
make_relative_symlink(sdk_path('packages/mojo/lib'),
os.path.join(packages_dir, 'mojo'))
os.symlink(sdk_path('packages/sky/lib'),
make_relative_symlink(sdk_path('packages/sky/lib'),
os.path.join(packages_dir, 'sky'))
if should_commit: