mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 10:32:59 +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>
|
<span id="terminal"></span><span id="cursor">_<input type="text" id="clipboard-collect"></span>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
<script src="sys/const.js"></script>
|
||||||
<script src="sys/terminal.js"></script>
|
<script src="sys/terminal.js"></script>
|
||||||
<script src="sys/fs.js"></script>
|
<script src="sys/fs.js"></script>
|
||||||
<script src="sys/ppm.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("/temp")
|
||||||
createFolder("/etc")
|
createFolder("/etc")
|
||||||
|
|
||||||
await installPackage("app/hello")
|
for (const app of DEFAULT_APPS) {
|
||||||
await installPackage("app/posh")
|
await installPackage(APP_REPOSITORY + "/" + app)
|
||||||
await installPackage("app/ppm")
|
}
|
||||||
await installPackage("app/putils")
|
|
||||||
await installPackage("app/reset")
|
|
||||||
await installPackage("app/vget")
|
|
||||||
await installPackage("app/kfc")
|
|
||||||
await installPackage("app/woman")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(fs_mapping).length == 0) {
|
if (Object.keys(fs_mapping).length == 0) {
|
||||||
resetSystem()
|
resetSystem()
|
||||||
}
|
}
|
||||||
|
|
||||||
executeCommand(["/app/posh.js"])
|
executeCommand(STARTUP_COMMAND)
|
||||||
|
|
||||||
var start_date = new Date()
|
var start_date = new Date()
|
Loading…
x
Reference in New Issue
Block a user