shell.nix
This commit is contained in:
parent
a8d39007bb
commit
96c39db639
6 changed files with 42 additions and 20 deletions
18
.gitignore
vendored
18
.gitignore
vendored
|
|
@ -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
|
||||
.gradle/
|
||||
|
||||
# Generated by package manager
|
||||
node_modules/
|
||||
|
|
|
|||
|
|
@ -16,5 +16,8 @@
|
|||
<platform name="electron">
|
||||
<icon src="resources/icon.png" width="512" height="512" />
|
||||
</platform>
|
||||
<icon src="resources/icon.png" />
|
||||
|
||||
<preference name="ZoomControls" value="true" />
|
||||
|
||||
</widget>
|
||||
|
|
|
|||
12
env.sh
Executable file
12
env.sh
Executable 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
22
shell.nix
Normal 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."
|
||||
'';
|
||||
}
|
||||
|
|
@ -12,8 +12,9 @@
|
|||
}
|
||||
|
||||
body {
|
||||
width: 800px;
|
||||
font-family: "Poppins", sans-serif;
|
||||
margin: 0;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
text-align: center; /* Centraliza o texto da página */
|
||||
background-image: linear-gradient(-45deg, var(--bg-start), var(--bg-end));
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||
<title>BioLab Parameter Explorer</title>
|
||||
<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
|
||||
rel="stylesheet"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue