This commit is contained in:
Jean Ouina 2020-06-07 20:41:04 +02:00
parent da94a8e5c1
commit 8a3b5f752c
4 changed files with 3 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -201,7 +201,6 @@ function processAttachment(attachment, id){
if(res.status !== 200)return checkViruses(hash, data, id) if(res.status !== 200)return checkViruses(hash, data, id)
const result = await res.json() const result = await res.json()
result.official = true
cache[hash] = result cache[hash] = result
renderToElements(id, result, attachment.filename) renderToElements(id, result, attachment.filename)

View File

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"test": "tsc && electron .", "test": "tsc && electron .",
"run": "electron .", "run": "electron .",
"build": "electron compile.js && electron-packager ./distApp --ignore=\"(distApp|builds|\\.ts)\" --arch=ia32 --win32metadata.ProductName=\"Lightcord\" --win32metadata.CompanyName=\"Lightcord Inc.\" --protocol=discord --platform=\"win32\" --out=builds --icon=app.ico --executable-name=\"Lightcord\" --asar.unpack=*.{node,dll} --overwrite", "build": "electron compile.js && electron-packager ./distApp --ignore=\"(distApp|builds|\\.ts)\" --arch=ia32 --win32metadata.ProductName=\"Lightcord\" --win32metadata.CompanyName=\"Discord Inc.\" --protocol=discord --platform=\"win32\" --out=builds --icon=app.ico --executable-name=\"Lightcord\" --asar.unpack=*.{node,dll} --overwrite",
"devInstall": "npm i -g --arch=ia32 electron@8.3.0 && npm i -g typescript && npm i --save-dev @types/node@12.12.39 && npm i --save-dev --arch=ia32 electron@8.3.0 && node installSubModules.js && echo \"Everything is installed. You should be able to do `npm run test` to compile everything and launch.\"" "devInstall": "npm i -g --arch=ia32 electron@8.3.0 && npm i -g typescript && npm i --save-dev @types/node@12.12.39 && npm i --save-dev --arch=ia32 electron@8.3.0 && node installSubModules.js && echo \"Everything is installed. You should be able to do `npm run test` to compile everything and launch.\""
}, },
"author": "", "author": "",