Re-organize directory structure
This commit is contained in:
parent
5ee877fdf3
commit
1c72d60761
|
@ -1,6 +1,6 @@
|
|||
# which-electron    
|
||||
|
||||
Try to find out which Electron version is bundled inside an application.
|
||||
Find out which Electron version is bundled inside an application.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -33,7 +33,7 @@ We attempt multiple pathways:
|
|||
4. A lookup table of [hashes from various electron releases](https://github.com/captn3m0/electron-fingerprints/) is used to guess the version. In case of multiple matches, it returns a range of versions.
|
||||
5. Get the electron version from the electron binary (WIP)
|
||||
|
||||
Note that this can be run against untrusted binaries as it does not _try to run the application_. It has been tested against various file formats: zip/dmg/exe/AppImage/tar.gz etc. It extracts limited files using 7-zip.
|
||||
Note that this can be run against untrusted binaries as it does not _try to run the application_. It has been tested against various file formats: zip/dmg/exe/AppImage/tar.gz etc. It extracts limited files using 7-zip to a temporary directory at runtime if needed.
|
||||
|
||||
## Known Issues
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "which-electron",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "Guess which electron version is bundled in an application",
|
||||
"main": "index.js",
|
||||
"main": "src/index.js",
|
||||
"bin": {
|
||||
"which-electron": "index.js"
|
||||
"which-electron": "src/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "kuta tests/*.js"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const test = require("kuta").test;
|
||||
const finder = require("../finder");
|
||||
const finder = require("../src/finder");
|
||||
const assert = require("assert");
|
||||
const _ = require("./utils");
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const test = require("kuta").test;
|
||||
const fp = require("../fingerprint");
|
||||
const fp = require("../src/fingerprint");
|
||||
const assert = require("assert");
|
||||
|
||||
test("it should work with a single fingerprint", () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const test = require('kuta').test;
|
||||
const os = require('../os')
|
||||
const os = require('../src/os')
|
||||
const assert = require('assert')
|
||||
const _ = require('./utils')
|
||||
|
||||
|
|
Loading…
Reference in New Issue