mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
cleaup main
This commit is contained in:
parent
b43cb2073c
commit
a30f875639
9
TODO.md
Normal file
9
TODO.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[] auto install java on setup
|
||||||
|
[x] support install ask configs
|
||||||
|
[] DEVLOGS
|
||||||
|
[] improve package last task view (statusText)
|
||||||
|
[] show git clone status
|
||||||
|
|
||||||
|
[] fix app update modal
|
||||||
|
[] fix update removes "options.txt"
|
||||||
|
[] improve child process on management
|
@ -24,6 +24,7 @@
|
|||||||
"@electron-toolkit/utils": "^2.0.0",
|
"@electron-toolkit/utils": "^2.0.0",
|
||||||
"@getstation/electron-google-oauth2": "^14.0.0",
|
"@getstation/electron-google-oauth2": "^14.0.0",
|
||||||
"@imjs/electron-differential-updater": "^5.1.7",
|
"@imjs/electron-differential-updater": "^5.1.7",
|
||||||
|
"@loadable/component": "^5.16.3",
|
||||||
"@ragestudio/hermes": "^0.1.1",
|
"@ragestudio/hermes": "^0.1.1",
|
||||||
"adm-zip": "^0.5.10",
|
"adm-zip": "^0.5.10",
|
||||||
"antd": "^5.13.2",
|
"antd": "^5.13.2",
|
||||||
@ -44,8 +45,10 @@
|
|||||||
"progress-stream": "^2.0.0",
|
"progress-stream": "^2.0.0",
|
||||||
"protocol-registry": "^1.4.1",
|
"protocol-registry": "^1.4.1",
|
||||||
"react-icons": "^4.11.0",
|
"react-icons": "^4.11.0",
|
||||||
"react-router-dom": "^6.19.0",
|
"react-router-dom": "6.6.2",
|
||||||
"react-spinners": "^0.13.8",
|
"react-spinners": "^0.13.8",
|
||||||
|
"react-spring": "^9.7.3",
|
||||||
|
"react-motion": "0.5.2",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"signal-exit": "^4.1.0",
|
"signal-exit": "^4.1.0",
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
import initManifest from "../../utils/initManifest"
|
import initManifest from "../utils/initManifest"
|
||||||
import parseStringVars from "../../utils/parseStringVars"
|
import parseStringVars from "../utils/parseStringVars"
|
||||||
import processGenericSteps from "../installs_steps_methods"
|
import processGenericSteps from "../generic_steps"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
updateInstalledPackage,
|
updateInstalledPackage,
|
||||||
getInstalledPackages,
|
getInstalledPackages,
|
||||||
} from "../../local_db"
|
} from "../local_db"
|
||||||
|
|
||||||
export default async function apply(pkg_id, changes) {
|
export default async function apply(pkg_id, changes) {
|
||||||
let pkg = await getInstalledPackages(pkg_id)
|
let pkg = await getInstalledPackages(pkg_id)
|
@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
getInstalledPackages,
|
getInstalledPackages,
|
||||||
} from "../../local_db"
|
} from "../local_db"
|
||||||
|
|
||||||
import readManifest from "../../utils/readManifest"
|
import readManifest from "../utils/readManifest"
|
||||||
import initManifest from "../../utils/initManifest"
|
import initManifest from "../utils/initManifest"
|
||||||
import parseStringVars from "../../utils/parseStringVars"
|
import parseStringVars from "../utils/parseStringVars"
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
|
|
||||||
import UpdateCMD from "./update"
|
import UpdateCMD from "./update"
|
||||||
|
|
@ -1,17 +1,17 @@
|
|||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
|
|
||||||
import readManifest from "../../utils/readManifest"
|
import readManifest from "../utils/readManifest"
|
||||||
import initManifest from "../../utils/initManifest"
|
import initManifest from "../utils/initManifest"
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
|
|
||||||
import defaultManifest from "../../defaults/pkg_manifest"
|
import defaultManifest from "../defaults/pkg_manifest"
|
||||||
import processGenericSteps from "../installs_steps_methods"
|
import processGenericSteps from "../generic_steps"
|
||||||
|
|
||||||
import applyChanges from "./apply"
|
import applyChanges from "./apply"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
updateInstalledPackage,
|
updateInstalledPackage,
|
||||||
} from "../../local_db"
|
} from "../local_db"
|
||||||
|
|
||||||
export default async function install(manifest) {
|
export default async function install(manifest) {
|
||||||
manifest = await readManifest(manifest).catch((error) => {
|
manifest = await readManifest(manifest).catch((error) => {
|
@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
getInstalledPackages,
|
getInstalledPackages,
|
||||||
deleteInstalledPackage,
|
deleteInstalledPackage,
|
||||||
} from "../../local_db"
|
} from "../local_db"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
import readManifest from "../../utils/readManifest"
|
import readManifest from "../utils/readManifest"
|
||||||
import initManifest from "../../utils/initManifest"
|
import initManifest from "../utils/initManifest"
|
||||||
|
|
||||||
import { rimraf } from "rimraf"
|
import { rimraf } from "rimraf"
|
||||||
|
|
@ -1,13 +1,13 @@
|
|||||||
import {
|
import {
|
||||||
updateInstalledPackage,
|
updateInstalledPackage,
|
||||||
getInstalledPackages,
|
getInstalledPackages,
|
||||||
} from "../../local_db"
|
} from "../local_db"
|
||||||
|
|
||||||
import readManifest from "../../utils/readManifest"
|
import readManifest from "../utils/readManifest"
|
||||||
import initManifest from "../../utils/initManifest"
|
import initManifest from "../utils/initManifest"
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
|
|
||||||
import processGenericSteps from "../installs_steps_methods"
|
import processGenericSteps from "../generic_steps"
|
||||||
|
|
||||||
export default async function update(pkg_id) {
|
export default async function update(pkg_id) {
|
||||||
// find package manifest
|
// find package manifest
|
@ -3,12 +3,10 @@ import fs from "node:fs"
|
|||||||
|
|
||||||
import humanFormat from "human-format"
|
import humanFormat from "human-format"
|
||||||
|
|
||||||
import got from "got"
|
import sendToRender from "../utils/sendToRender"
|
||||||
|
import extractFile from "../utils/extractFile"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import GoogleDriveAPI from "../lib/google_drive"
|
||||||
import extractFile from "../../utils/extractFile"
|
|
||||||
|
|
||||||
import GoogleDriveAPI from "../../lib/google_drive"
|
|
||||||
|
|
||||||
function convertSize(size) {
|
function convertSize(size) {
|
||||||
return `${humanFormat(size, {
|
return `${humanFormat(size, {
|
@ -1,10 +1,10 @@
|
|||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import upath from "upath"
|
import upath from "upath"
|
||||||
import { execa } from "../../lib/execa"
|
import { execa } from "../lib/execa"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
import Vars from "../../vars"
|
import Vars from "../vars"
|
||||||
|
|
||||||
export default async (manifest, step) => {
|
export default async (manifest, step) => {
|
||||||
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
@ -1,10 +1,10 @@
|
|||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import { execa } from "../../lib/execa"
|
import { execa } from "../lib/execa"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
|
|
||||||
import Vars from "../../vars"
|
import Vars from "../vars"
|
||||||
|
|
||||||
export default async (manifest, step) => {
|
export default async (manifest, step) => {
|
||||||
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
@ -1,11 +1,11 @@
|
|||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import { execa } from "../../lib/execa"
|
import { execa } from "../lib/execa"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
|
|
||||||
import git_pull from "./git_pull"
|
import git_pull from "./git_pull"
|
||||||
import Vars from "../../vars"
|
import Vars from "../vars"
|
||||||
|
|
||||||
export default async (manifest, step) => {
|
export default async (manifest, step) => {
|
||||||
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
const gitCMD = fs.existsSync(Vars.git_path) ? `${Vars.git_path}` : "git"
|
@ -8,8 +8,8 @@ import humanFormat from "human-format"
|
|||||||
|
|
||||||
import got from "got"
|
import got from "got"
|
||||||
|
|
||||||
import sendToRender from "../../utils/sendToRender"
|
import sendToRender from "../utils/sendToRender"
|
||||||
import extractFile from "../../utils/extractFile"
|
import extractFile from "../utils/extractFile"
|
||||||
|
|
||||||
function convertSize(size) {
|
function convertSize(size) {
|
||||||
return `${humanFormat(size, {
|
return `${humanFormat(size, {
|
@ -16,7 +16,7 @@ import pkg from "../../package.json"
|
|||||||
|
|
||||||
import setup from "./setup"
|
import setup from "./setup"
|
||||||
|
|
||||||
import PkgManager from "./pkg_mng"
|
import PkgManager from "./manager"
|
||||||
import { readManifest } from "./utils/readManifest"
|
import { readManifest } from "./utils/readManifest"
|
||||||
|
|
||||||
import GoogleDriveAPI from "./lib/google_drive"
|
import GoogleDriveAPI from "./lib/google_drive"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Client from "../../lib/mcl/launcher"
|
import Client from "./launcher"
|
||||||
import Authenticator from "../../lib/mcl/authenticator"
|
import Authenticator from "./authenticator"
|
||||||
|
|
||||||
export default class MCL {
|
export default class MCL {
|
||||||
/**
|
/**
|
@ -1,8 +1,8 @@
|
|||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import open from "open"
|
import open from "open"
|
||||||
|
|
||||||
import Vars from "../vars"
|
import Vars from "./vars"
|
||||||
import * as local_db from "../local_db"
|
import * as local_db from "./local_db"
|
||||||
|
|
||||||
import InstallCMD from "./commands/install"
|
import InstallCMD from "./commands/install"
|
||||||
import UpdateCMD from "./commands/update"
|
import UpdateCMD from "./commands/update"
|
@ -3,7 +3,7 @@ import os from "node:os"
|
|||||||
import lodash from "lodash"
|
import lodash from "lodash"
|
||||||
|
|
||||||
import Vars from "../vars"
|
import Vars from "../vars"
|
||||||
import PublicLibs from "../public_libraries"
|
import PublicLibs from "../lib/public_bind"
|
||||||
|
|
||||||
async function importLib(libs) {
|
async function importLib(libs) {
|
||||||
const libraries = {}
|
const libraries = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user