home-assistant-custom-lovelace-modules.android-tv-card: init at 3.6.1

This commit is contained in:
K900 2024-05-05 22:07:26 +03:00
parent 7142a2dec9
commit 34ea6b8c2e
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "android-tv-card";
version = "3.6.1";
src = fetchFromGitHub {
owner = "Nerwyn";
repo = "android-tv-card";
rev = version;
hash = "sha256-bVfaB5s4b0bu8RiPGoyuPzhe2otCPugldmoVQuYX3P8=";
};
patches = [ ./dont-call-git.patch ];
npmDepsHash = "sha256-yLIf+VXrNF81pq8dbPa+JplNZqhrRnXHEdEk6wJN98A=";
installPhase = ''
runHook preInstall
mkdir $out
cp dist/android-tv-card.min.js $out
runHook postInstall
'';
passthru.entrypoint = "android-tv-card.min.js";
meta = with lib; {
description = "Universal Customizable TV Remote Card, with HA actions, super configurable touchpad, slider, haptics, and keyboard";
homepage = "https://github.com/Nerwyn/android-tv-card";
license = licenses.asl20;
maintainers = with maintainers; [ k900 ];
platforms = platforms.all;
};
}

View file

@ -0,0 +1,17 @@
diff --git a/webpack.config.js b/webpack.config.js
index 469ffe1..3233c4b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,11 +1,7 @@
const path = require('path');
const { execSync } = require('child_process');
-let env =
- execSync('git branch --show-current').toString().trim() == 'main'
- ? 'production'
- : 'development';
-env = 'production';
+let env = 'production';
module.exports = {
mode: env,

View file

@ -2,6 +2,8 @@
}:
{
android-tv-card = callPackage ./android-tv-card { };
light-entity-card = callPackage ./light-entity-card { };
mini-graph-card = callPackage ./mini-graph-card {};