{"id":30028639,"url":"https://github.com/systemsoftware/electron-builder-obfuscated","last_synced_at":"2025-08-06T15:47:52.481Z","repository":{"id":302172370,"uuid":"1011505829","full_name":"systemsoftware/electron-builder-obfuscated","owner":"systemsoftware","description":"Automate the obfuscation of JavaScript files in an Electron app and then build it with electron-builder. The original source is preserved, and a temporary obfuscated version is used for building.","archived":false,"fork":false,"pushed_at":"2025-06-30T23:43:32.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-01T00:36:07.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/systemsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-30T23:42:40.000Z","updated_at":"2025-06-30T23:43:35.000Z","dependencies_parsed_at":"2025-07-01T00:36:10.282Z","dependency_job_id":"8579f3a6-480f-4743-8fd7-499fb85b494f","html_url":"https://github.com/systemsoftware/electron-builder-obfuscated","commit_stats":null,"previous_names":["systemsoftware/electron-builder-obfuscated"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/systemsoftware/electron-builder-obfuscated","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Felectron-builder-obfuscated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Felectron-builder-obfuscated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Felectron-builder-obfuscated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Felectron-builder-obfuscated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/systemsoftware","download_url":"https://codeload.github.com/systemsoftware/electron-builder-obfuscated/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Felectron-builder-obfuscated/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269107830,"owners_count":24361202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-06T15:47:51.069Z","updated_at":"2025-08-06T15:47:52.443Z","avatar_url":"https://github.com/systemsoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electron App Obfuscation \u0026 Build Script\n\nThis Node.js script automates the obfuscation of JavaScript files in an Electron app and builds it using `electron-builder`. The original source is preserved, and a temporary obfuscated version is used for building.\n\n## 🔧 Features\n\n* Recursively obfuscates all `.js` files (excluding `node_modules`) using `javascript-obfuscator`\n* Copies the source to a temporary directory to avoid modifying original files\n* Removes `.git` and `.gitignore` from the build directory\n* Builds the app with `electron-builder` for macOS and Windows\n\n\n\n## 📦 Prerequisites\n\n* Node.js\n* `electron-builder` installed globally or in your project\n* `javascript-obfuscator` installed\n\n```bash\nnpm install -g electron-builder \u0026\u0026 npm install javascript-obfuscator\n```\n\n\n\n## 🚀 Usage\n\n```bash\n./build-obfuscated.js \u003csourceDir\u003e \u003ctempBuildDir\u003e [--no-sign]\n```\n\n### Parameters\n\n| Argument         | Description                                                                                       |\n| - | - |\n| `\u003csourceDir\u003e`    | Path to your Electron app source. Defaults to `src/`.                                             |\n| `\u003ctempBuildDir\u003e` | Path to a temp directory for the obfuscated build. Defaults to `~/Desktop/temp-build-obfuscated`. |\n| `--no-sign`      | (Optional) Prevents code signing by disabling `CSC_IDENTITY_AUTO_DISCOVERY`.                      |\n\n\n\n## 🔒 Example\n\n```bash\n./build-obfuscated.js src ~/Desktop/obf-build --no-sign\n```\n\nThis will:\n\n* Copy the contents of `src/` to `~/Desktop/obf-build`\n* Obfuscate all `.js` files in the copied directory\n* Remove `.git` and `.gitignore`\n* Run `electron-builder` from the obfuscated directory without signing\n\n\n\n## 📁 Output\n\nThe built app for macOS and Windows will be created in the `dist/` directory inside the temp build folder.\n\n\n\n## 📝 Notes\n\n* Only `.js` files are obfuscated. HTML and CSS files are not touched.\n* Ensure that the copied source directory contains a valid `package.json` and `electron-builder` config.\n\n\n## ⚠️ Disclaimer\n\nThis script is intended to provide basic obfuscation and build automation. Obfuscation is not a substitute for proper code protection.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemsoftware%2Felectron-builder-obfuscated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemsoftware%2Felectron-builder-obfuscated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemsoftware%2Felectron-builder-obfuscated/lists"}