Coder Social home page Coder Social logo

Can't build non-gui version about among-us-proxy HOT 2 OPEN

nickcis avatar nickcis commented on August 20, 2024
Can't build non-gui version

from among-us-proxy.

Comments (2)

Ten0 avatar Ten0 commented on August 20, 2024

Changing the package.json's contents to:

{
  "name": "among-us-proxy",
  "version": "1.2.0",
  "description": "Proxy of the local network protocol for the Among Us game",
  "main": "src/index.js",
  "author": "Nicolas Cisco",
  "license": "MIT",
  "repository": "https://github.com/nickcis/among-us-proxy",
  "scripts": {
    "test": "jest",
    "format": "prettier --write 'src/**/*.js'",
    "make": "npm run package && zip -j dist/among-us-proxy-`node -e 'console.log(require(\"./package.json\").version)'`.zip dist/among-us-proxy.exe",
    "package": "nexe src/main.js -t windows-12.9.1 -o dist/among-us-proxy.exe"
  },
  "files": [
    "src/*",
    "README.md"
  ],
  "dependencies": {
    "jest": "^26.4.2",
    "node-fetch": "^2.6.0",
    "simple-peerjs": "^1.0.1",
    "wrtc": "^0.4.6",
    "ws": "^7.3.1",
    "yargs": "^15.4.1"
  },
  "devDependencies": {
    "nexe": "^3.3.7"
  },
  "optionalDependencies": {
    "bufferutil": "^4.0.1",
    "utf-8-validate": "^5.0.2"
  }
}

enables it to build and work (removing extra unnecessary dep and making nexe hit main.js instead of index)

Note that the exe has to be moved next to the node_modules folder, and it's not necessary to package a node_modules that condains the dev dependencies (environment variable NODE_ENV=production)

Also note this has to be built on windows, otherwise you'll hit issues similar to #11 (comment)

from among-us-proxy.

NickCis avatar NickCis commented on August 20, 2024

Sorry, I forgot to check this repo. Can you send a PR with this fix?

Update:

You are getting that error because you have not followed the instructions on the readme:

Development

The project uses npm and lerna.

Install dependencies:

$ npm install
$ npm run bootstrap

Code formatting:

$ npm run format

Packaging:

$ npm run lerna -- run make

You are getting the error of the missing among-us-proxy-dev-utils@^1.1.1 because you haven't bootstraped dependencies using lerna npm run bootstrap. You shouldn't run npm install inside the packages folder.

from among-us-proxy.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.