-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
315 changed files
with
37,499 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: Node.js CI | ||
permissions: write-all | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get version | ||
run: echo "version=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
with: | ||
tag_name: ${{ env.version }} | ||
release_name: release ${{ env.version }} | ||
draft: false | ||
prerelease: ${{ contains(env.version, 'beta') || contains(env.version, 'alpha') }} | ||
|
||
build-launcher: | ||
needs: create-release | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
shell: bash | ||
|
||
- name: Build | ||
env: | ||
GH_TOKEN: ${{ secrets.github_token }} | ||
run: npm run build | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Launcher Build | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get version | ||
run: echo "version=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ env.version }} | ||
release_name: release ${{ env.version }} | ||
draft: false | ||
prerelease: ${{ contains(env.version, 'beta') || contains(env.version, 'alpha') }} | ||
|
||
build-launcher: | ||
needs: create-release | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
shell: bash | ||
|
||
- name: Build | ||
env: | ||
GH_TOKEN: ${{ secrets.github_token }} | ||
run: npm run build | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
EULA del Battly Launcher | ||
|
||
Este Contrato de Licencia del Usuario Final (EULA) es un acuerdo legal entre tu (Usuario) y TECNO BROS (Creador). Al usar el Battly Launcher (Software), aceptas los terminos de este EULA. | ||
|
||
1. Licencia de Uso | ||
1.1. Se te otorga una licencia personal, no transferible y revocable para usar el Software y acceder a Minecraft. | ||
1.2. Debes utilizar el Software de acuerdo con las leyes y las restricciones establecidas en este EULA. | ||
|
||
2. Restricciones | ||
2.1. No podras copiar, modificar, distribuir, vender, alquilar, sublicenciar, descompilar, realizar ingenieria inversa o intentar obtener el codigo fuente del Software. | ||
2.2. No podras utilizar el Software para actividades ilegales o que infrinjan los derechos de propiedad intelectual de terceros. | ||
2.3. No podras utilizar el Software para difamar, acosar, amenazar o danar a otros usuarios. | ||
|
||
3. Propiedad Intelectual | ||
3.1. El Software y todos los derechos de propiedad intelectual asociados son propiedad exclusiva de TECNO BROS. | ||
3.2. Reconoces que no adquieres ningun derecho de propiedad sobre el Software, excepto la licencia limitada otorgada en este EULA. | ||
|
||
4. Garantia y Responsabilidad | ||
4.1. El Software se proporciona "tal cual", sin garantias expresas o implicitas sobre su funcionamiento o idoneidad para un proposito especifico. | ||
4.2. Utilizas el Software bajo tu propio riesgo y TECNO BROS no sera responsable por ningun dano que pueda surgir del uso del Software. | ||
4.3. Nos reservamos el derecho de suspender o interrumpir el acceso al Software en cualquier momento y sin previo aviso. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
EULA del Battly Launcher | ||
|
||
Este Contrato de Licencia del Usuario Final (EULA) es un acuerdo legal entre tu (Usuario) y TECNO BROS (Creador). Al usar el Battly Launcher (Software), aceptas los terminos de este EULA. | ||
|
||
1. Licencia de Uso | ||
1.1. Se te otorga una licencia personal, no transferible y revocable para usar el Software y acceder a Minecraft. | ||
1.2. Debes utilizar el Software de acuerdo con las leyes y las restricciones establecidas en este EULA. | ||
|
||
2. Restricciones | ||
2.1. No podras copiar, modificar, distribuir, vender, alquilar, sublicenciar, descompilar, realizar ingenieria inversa o intentar obtener el codigo fuente del Software. | ||
2.2. No podras utilizar el Software para actividades ilegales o que infrinjan los derechos de propiedad intelectual de terceros. | ||
2.3. No podras utilizar el Software para difamar, acosar, amenazar o danar a otros usuarios. | ||
|
||
3. Propiedad Intelectual | ||
3.1. El Software y todos los derechos de propiedad intelectual asociados son propiedad exclusiva de TECNO BROS. | ||
3.2. Reconoces que no adquieres ningun derecho de propiedad sobre el Software, excepto la licencia limitada otorgada en este EULA. | ||
|
||
4. Garantia y Responsabilidad | ||
4.1. El Software se proporciona "tal cual", sin garantias expresas o implicitas sobre su funcionamiento o idoneidad para un proposito especifico. | ||
4.2. Utilizas el Software bajo tu propio riesgo y TECNO BROS no sera responsable por ningun dano que pueda surgir del uso del Software. | ||
4.3. Nos reservamos el derecho de suspender o interrumpir el acceso al Software en cualquier momento y sin previo aviso. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Battly Launcher [![Node.js CI](https://github.com/1ly4s0/battlylauncher/actions/workflows/build.yml/badge.svg)](https://github.com/1ly4s0/battlylauncher/actions/workflows/build.yml) | ||
|
||
![BattlyLauncher_Banner_Low](https://github.com/1ly4s0/battlylauncher/assets/67460389/2574bdeb-c8bb-47ac-b263-e4bd687494af) | ||
|
||
|
||
Battly es un launcher de Minecraft para usuarios premium y no-premium para jugar a Minecraft totalmente gratis. | ||
|
||
La interfaz de usuario de Battly es simple y fácil de usar, lo que permite una experiencia de juego fluida y sin complicaciones. Además, Battly tiene todas las versiones de Minecraft disponibles hasta el momento, y también incluye Forge para todas las versiones de Minecraft, lo que te permite instalar tus mods favoritos con facilidad. | ||
|
||
No sólo eso, Battly también tiene configuraciones que te servirán para ajustar el uso de recursos del sistema, tales como ram, etc. | ||
|
||
También estará disponible para Windows, MAC y todas las distribuciones de Linux, tales como Debian o Ubuntu, absolutamente todos los sistemas operativos que hay actualmente. | ||
|
||
|
||
|
||
|
||
## Sugerencias | ||
Recordad que si tenéis alguna sugerencia para Battly me la podéis dejar aquí debajo en los comentarios, en el servidor de Discord o mandando un correo a [email protected] | ||
|
||
|
||
|
||
## Descargas | ||
Se puede descargar en la página oficial de Battly [aquí](https://battlylauncher.com/download) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
const builder = require('electron-builder'); | ||
const obfuscator = require('javascript-obfuscator'); | ||
const fs = require('fs-extra'); | ||
const path = require('path'); | ||
const { productname } = require('./package.json'); | ||
|
||
// Función para obfuscar un archivo | ||
async function obfuscateFile(filePath) { | ||
try { | ||
const code = await fs.readFile(filePath, 'utf-8'); | ||
const obfuscatedCode = obfuscator.obfuscate(code, { /* opciones de obfuscator */ }).getObfuscatedCode(); | ||
await fs.writeFile(filePath, obfuscatedCode); | ||
console.log(`✅ Código obfuscado correctamente: ${filePath}`); | ||
} catch (error) { | ||
console.error(`Error al obfuscar el archivo ${filePath}`, error); | ||
} | ||
} | ||
|
||
// Función para obfuscar todos los archivos .js en el directorio src | ||
async function obfuscateSrc() { | ||
try { | ||
const srcPath = './src'; | ||
const files = await fs.readdir(srcPath); | ||
|
||
// Filtrar solo archivos .js | ||
const jsFiles = files.filter(file => path.extname(file) === '.js'); | ||
|
||
// Obfuscar cada archivo .js | ||
await Promise.all(jsFiles.map(file => obfuscateFile(path.join(srcPath, file)))); | ||
} catch (error) { | ||
console.error('Error al obfuscar el código', error); | ||
} | ||
} | ||
// Ejecutar la obfuscación antes de construir | ||
obfuscateSrc().then(() => { | ||
|
||
builder.build({ | ||
config: { | ||
publish: [ | ||
{ | ||
provider: "github", | ||
owner: "1ly4s0", | ||
repo: "battlylauncher", | ||
releaseType: "release" | ||
} | ||
], | ||
generateUpdatesFilesForAllChannels: true, | ||
appId: productname, | ||
productName: productname, | ||
artifactName: '${productName}-${os}-${arch}.${ext}', | ||
files: ["src/**/*", "package.json", "LICENSE.md"], | ||
directories: { "output": "dist" }, | ||
compression: 'maximum', | ||
asar: false, | ||
//asar unpack de 7zip-bin | ||
asarUnpack: [ | ||
"node_modules/7zip-bin/**/*", | ||
"node_modules/7zip/**/*", | ||
], | ||
win: { | ||
icon: "./src/assets/images/icon.ico", | ||
target: [{ | ||
target: "nsis", | ||
arch: ["x64", "ia32"] | ||
}] | ||
}, | ||
nsis: { | ||
oneClick: false, | ||
allowToChangeInstallationDirectory: true, | ||
createDesktopShortcut: true, | ||
runAfterFinish: true, | ||
installerLanguages: ['es'], | ||
multiLanguageInstaller: true, | ||
license: "./LICENSE.md", | ||
}, | ||
|
||
mac: { | ||
icon: "./src/assets/images/icon.icns", | ||
category: "public.app-category.games", | ||
target: [{ | ||
target: "dmg", | ||
arch: ["x64", "arm64"] | ||
}] | ||
}, | ||
linux: { | ||
icon: "./src/assets/images/icon.png", | ||
target: [{ | ||
target: "AppImage", | ||
arch: ["x64"] | ||
}, { | ||
target: "tar.gz", | ||
arch: ["x64"] | ||
}, | ||
{ | ||
target: "deb", | ||
arch: ["x64"] | ||
}, | ||
{ | ||
target: "rpm", | ||
arch: ["x64"] | ||
}, | ||
{ | ||
target: "AppImage", | ||
arch: ["armv7l"] | ||
}, | ||
{ | ||
target: "tar.gz", | ||
arch: ["armv7l"] | ||
}, | ||
{ | ||
target: "deb", | ||
arch: ["armv7l"] | ||
}, | ||
{ | ||
target: "rpm", | ||
arch: ["armv7l"] | ||
} | ||
] | ||
} | ||
} | ||
}).then(() => { | ||
console.log('✅ El build se ha realizado correctamente.') | ||
}).catch(err => { | ||
console.error('Error al realizar el build', err) | ||
}) | ||
}); |
Oops, something went wrong.