#! /bin/sh
# Copyright 2018 Google LLC.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if [ -z "$1" ] || [ -z "$2" ]; then
    echo usage: $0 COMMIT APK_PATH >&2
    exit 1;
fi
NAME="skia-skqp/skqp-universal-$(git rev-parse "$1" | cut -b 1-16).apk"
gsutil cp "$2" "gs://$NAME"
echo "https://storage.googleapis.com/$NAME"
python tools/skqp/make_apk_list.py