{"id":18783544,"url":"https://github.com/tong/armory_electron_runtime","last_synced_at":"2025-04-13T12:11:46.126Z","repository":{"id":64910944,"uuid":"577861180","full_name":"tong/armory_electron_runtime","owner":"tong","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-21T09:17:40.000Z","size":84,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T12:11:43.138Z","etag":null,"topics":["armory","armory3d","debug","electron","runtime"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-13T17:35:56.000Z","updated_at":"2022-12-27T15:06:51.000Z","dependencies_parsed_at":"2023-01-30T03:15:31.831Z","dependency_job_id":null,"html_url":"https://github.com/tong/armory_electron_runtime","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tong%2Farmory_electron_runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tong%2Farmory_electron_runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tong%2Farmory_electron_runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tong%2Farmory_electron_runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tong","download_url":"https://codeload.github.com/tong/armory_electron_runtime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710450,"owners_count":21149191,"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","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":["armory","armory3d","debug","electron","runtime"],"created_at":"2024-11-07T20:39:37.411Z","updated_at":"2025-04-13T12:11:46.095Z","avatar_url":"https://github.com/tong.png","language":"Haxe","readme":"# armory_electron_runtime\n\nElectron based player and html5 debug runtime for armory.\n\n\n## Build\n\n```sh\ngit clone https://github.com/tong/armory_electron_runtime.git\ncd armory_electron_runtime\n\n# Install haxelib dependencies\nhaxelib install build.hxml\n\n# Install application dependencies\ncd app \u0026\u0026 npm install \u0026\u0026 cd ..\n\n# Install project dependencies\nnpm install\n\n# Build main process js\nnpm run build\n\n# linux|darwin|windows\nnpm run pack:linux\n```\n\n\n## Usage\n\nSet the custom launch command for the html5 player (change `os` and `arch` to your machine):   \nUse an absolute path to the executeable if it's not in your `PATH`.  \n```sh\nexport ARMORY_PLAY_HTML5='/\u003cabsolute-path-to-this-repo\u003e/armory-electron-runtime-linux-x64/armory-electron-runtime --devtools --window ${width}x${height} ${dir}/debug/html5/index.html'`\n```\n\nIf you want to have this permanently put it somewhere like `.zshrc` or `.bashrc`.  \n\nStart blender and `Play` the `Browser` target.\n\nThe (X) window class name is `armory-electron-runtime` if you want to apply some custom settings.\n\nFor accessing the electron api from haxe add [hxelectron](https://github.com/tong/hxelectron) to your khaconfig.js:\n```sh\nproject.addLibrary('electron');\n```\n\n\n### Logging\n```sh\nexport ELECTRON_ENABLE_LOGGING=true\n```\n\nSupported environment variables: https://www.electronjs.org/docs/latest/api/environment-variables\n\n\n### Flags\n\n- `--devtools` Open devtools when application starts\n- `--window ${width}x${height}` Window width, height\n\nSupported electron command line switches: https://www.electronjs.org/docs/latest/api/command-line-switches\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftong%2Farmory_electron_runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftong%2Farmory_electron_runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftong%2Farmory_electron_runtime/lists"}