mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 02:22:58 +03:00
const.js
This commit is contained in:
parent
ebcf18a136
commit
c065cef78b
@ -76,6 +76,7 @@
|
||||
<span id="terminal"></span><span id="cursor">_<input type="text" id="clipboard-collect"></span>
|
||||
</body>
|
||||
|
||||
<script src="sys/const.js"></script>
|
||||
<script src="sys/terminal.js"></script>
|
||||
<script src="sys/fs.js"></script>
|
||||
<script src="sys/ppm.js"></script>
|
||||
|
12
sys/const.js
Normal file
12
sys/const.js
Normal file
@ -0,0 +1,12 @@
|
||||
const APP_REPOSITORY = "app" // Repository url to download apps from
|
||||
const DEFAULT_APPS = [
|
||||
"posh", // required
|
||||
"hello",
|
||||
"ppm",
|
||||
"putils",
|
||||
"reset",
|
||||
"vget",
|
||||
"kfc",
|
||||
"woman"
|
||||
]
|
||||
const STARTUP_COMMAND = [ "/app/posh.js" ]
|
@ -168,20 +168,15 @@ async function resetSystem() {
|
||||
createFolder("/temp")
|
||||
createFolder("/etc")
|
||||
|
||||
await installPackage("app/hello")
|
||||
await installPackage("app/posh")
|
||||
await installPackage("app/ppm")
|
||||
await installPackage("app/putils")
|
||||
await installPackage("app/reset")
|
||||
await installPackage("app/vget")
|
||||
await installPackage("app/kfc")
|
||||
await installPackage("app/woman")
|
||||
for (const app of DEFAULT_APPS) {
|
||||
await installPackage(APP_REPOSITORY + "/" + app)
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.keys(fs_mapping).length == 0) {
|
||||
resetSystem()
|
||||
}
|
||||
|
||||
executeCommand(["/app/posh.js"])
|
||||
executeCommand(STARTUP_COMMAND)
|
||||
|
||||
var start_date = new Date()
|
Loading…
x
Reference in New Issue
Block a user