diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index d550943727..f7b47f9813 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -7,31 +7,23 @@ trigger: - "*" pr: none variables: - - name: versionBuilder - value: "5.2" - - group: github + - name: versionWheels + value: '1.1-3.7-alpine3.10' + - name: versionNode + value: '12.1' - group: twine +resources: + repositories: + - repository: azure + type: github + name: 'home-assistant/ci-azure' + endpoint: 'home-assistant' + stages: - stage: "Validate" jobs: - - job: "VersionValidate" - pool: - vmImage: "ubuntu-latest" - steps: - - task: UsePythonVersion@0 - displayName: "Use Python 3.7" - inputs: - versionSpec: "3.7" - - script: | - setup_version="$(python setup.py -V)" - branch_version="$(Build.SourceBranchName)" - - if [ "${setup_version}" != "${branch_version}" ]; then - echo "Version of tag ${branch_version} don't match with ${setup_version}!" - exit 1 - fi - displayName: "Check version of branch/tag" + - template: templates/azp-job-version.yaml@azure - stage: "Build" jobs: @@ -44,9 +36,9 @@ stages: inputs: versionSpec: "3.7" - task: NodeTool@0 - displayName: "Use Node 12.1" + displayName: "Use Node $(versionNode)" inputs: - versionSpec: "12.1" + versionSpec: "$(versionNode)" - script: pip install twine wheel displayName: "Install tools" - script: | @@ -55,3 +47,18 @@ stages: script/release displayName: "Build and release package" + - template: templates/azp-job-wheels.yaml@azure + parameters: + builderVersion: '$(versionWheels)' + builderApk: 'build-base' + wheelsLocal: true + preBuild: + - task: NodeTool@0 + displayName: "Use Node $(versionNode)" + inputs: + versionSpec: "$(versionNode)" + - script: | + set -e + + yarn install + script/build_frontend diff --git a/cast/script/upload b/cast/script/upload index 95f46032cf..fc22529ceb 100755 --- a/cast/script/upload +++ b/cast/script/upload @@ -1,3 +1,5 @@ # Run it twice, second time we just delete. aws s3 sync dist s3://cast.home-assistant.io --acl public-read -aws s3 sync dist s3://cast.home-assistant.io --acl public-read --delete +# Don't delete as it might break open sites that need to load code splitted things. +# aws s3 sync dist s3://cast.home-assistant.io --acl public-read --delete +# Todo : update JS first, HTML last. diff --git a/cast/src/html/launcher-faq.html.template b/cast/src/html/launcher-faq.html.template index 85ecbb0079..20640e8b54 100644 --- a/cast/src/html/launcher-faq.html.template +++ b/cast/src/html/launcher-faq.html.template @@ -118,7 +118,42 @@
-+ You're currently looking at the Home Assistant Cast launcher + application. This is a standalone application to launch Home Assistant + Cast on your Chromecast. Because Chromecasts do not allow us to log in + to Home Assistant, we need to supply authentication to it from the + launcher. This authentication is obtained when you authorize your + instance. Your authentication credentials will remain in your browser + and on your Cast device. +
++ Your authentication credentials or Home Assistant url are never sent + to the Cloud. You can validate this behavior in + the source code. +
++ The launcher application exists to make it possible to use Home + Assistant Cast with older versions of Home Assistant. +
++ Starting with Home Assistant 0.97, Home Assistant Cast is also built + into the Lovelace UI as a special entities card row. Since the + Lovelace UI already has authentication, you will be able to start + casting right away. +
+Home Assistant Cast is a receiver application for the Chromecast. When diff --git a/cast/src/html/launcher.html.template b/cast/src/html/launcher.html.template index da036e54eb..25b2eba1a5 100644 --- a/cast/src/html/launcher.html.template +++ b/cast/src/html/launcher.html.template @@ -42,10 +42,13 @@ })();