shell.nix

This commit is contained in:
ltadeu6 2025-11-24 04:16:49 -03:00
parent a8d39007bb
commit 96c39db639
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D
6 changed files with 42 additions and 20 deletions

20
.gitignore vendored
View file

@ -1,22 +1,6 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
.DS_Store .DS_Store
.gradle/
# Generated by package manager # Generated by package manager
node_modules/ node_modules/
@ -46,4 +30,4 @@ package-lock.json
*.synctex.gz *.synctex.gz
*.fdb_latexmk *.fdb_latexmk
*.fls *.fls
*.ipynb_checkpoints* *.ipynb_checkpoints*

View file

@ -16,5 +16,8 @@
<platform name="electron"> <platform name="electron">
<icon src="resources/icon.png" width="512" height="512" /> <icon src="resources/icon.png" width="512" height="512" />
</platform> </platform>
<icon src="resources/icon.png" />
<preference name="ZoomControls" value="true" />
</widget> </widget>

12
env.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
export PATH="$ANDROID_HOME/platform-tools:$PATH"
export PATH="$ANDROID_HOME/emulator:$PATH"
# Isolar o cache do Gradle para evitar conflitos.
export GRADLE_USER_HOME=$(pwd)/.gradle
cordova run android

22
shell.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# Nome do ambiente
name = "cordova-deps-shell";
# Lista de pacotes a serem instalados. Nada mais.
# O Nix garantirá que 'node', 'cordova', 'gradle' e 'java'
# estejam disponíveis no seu PATH quando você entrar no shell.
buildInputs = with pkgs; [
nodejs
cordova
gradle
jdk
];
# Mensagem simples para confirmar que você está no ambiente certo.
shellHook = ''
echo "Ambiente Nix com dependências do Cordova ativado."
echo "Execute 'source ./env.sh' para configurar o Android SDK."
'';
}

View file

@ -12,8 +12,9 @@
} }
body { body {
width: 800px;
font-family: "Poppins", sans-serif; font-family: "Poppins", sans-serif;
margin: 0; margin: 0 auto;
padding: 20px; padding: 20px;
text-align: center; /* Centraliza o texto da página */ text-align: center; /* Centraliza o texto da página */
background-image: linear-gradient(-45deg, var(--bg-start), var(--bg-end)); background-image: linear-gradient(-45deg, var(--bg-start), var(--bg-end));

View file

@ -6,7 +6,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>BioLab Parameter Explorer</title> <title>BioLab Parameter Explorer</title>
<meta name="description" content="" /> <meta name="description" content="" />
<meta name="viewport" content="width=800, initial-scale=1" /> <meta name="viewport" content="width=800, initial-scale=1, user-scalable=yes" />
<link <link
rel="stylesheet" rel="stylesheet"