mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix DistIntegrity
This commit is contained in:
parent
925c838f15
commit
a1b0974053
@ -13,7 +13,7 @@ global.remoteRepo = "ragestudio/comty"
|
|||||||
global.cachePath = path.join(process.cwd(), "cache")
|
global.cachePath = path.join(process.cwd(), "cache")
|
||||||
global.distPath = path.join(process.cwd(), "dist")
|
global.distPath = path.join(process.cwd(), "dist")
|
||||||
|
|
||||||
async function checkDistIntegrity() {
|
function checkDistIntegrity() {
|
||||||
// check if dist folder exists
|
// check if dist folder exists
|
||||||
if (!fs.existsSync(global.distPath)) {
|
if (!fs.existsSync(global.distPath)) {
|
||||||
return false
|
return false
|
||||||
@ -52,6 +52,7 @@ async function runServer() {
|
|||||||
async function main() {
|
async function main() {
|
||||||
// check if dist is valid
|
// check if dist is valid
|
||||||
if (!checkDistIntegrity()) {
|
if (!checkDistIntegrity()) {
|
||||||
|
console.log("DistIntegrity is not valid, downloading latest release...")
|
||||||
await setupLatestRelease()
|
await setupLatestRelease()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user