{"id":15723204,"url":"https://github.com/jerakin/editor-script-cleanup","last_synced_at":"2026-04-27T18:33:14.776Z","repository":{"id":129090097,"uuid":"215112246","full_name":"Jerakin/editor-script-cleanup","owner":"Jerakin","description":"Editor script that adds clean up functionallity","archived":false,"fork":false,"pushed_at":"2019-11-01T10:06:57.000Z","size":874,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T21:11:13.435Z","etag":null,"topics":["defold","defold-editor-script","defold-library","defold-module"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Jerakin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-14T18:04:06.000Z","updated_at":"2024-03-10T10:07:55.000Z","dependencies_parsed_at":"2023-04-13T13:04:09.433Z","dependency_job_id":null,"html_url":"https://github.com/Jerakin/editor-script-cleanup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerakin%2Feditor-script-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerakin%2Feditor-script-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerakin%2Feditor-script-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerakin%2Feditor-script-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jerakin","download_url":"https://codeload.github.com/Jerakin/editor-script-cleanup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395596,"owners_count":20770243,"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":["defold","defold-editor-script","defold-library","defold-module"],"created_at":"2024-10-03T22:10:40.775Z","updated_at":"2026-04-27T18:33:14.742Z","avatar_url":"https://github.com/Jerakin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cleanup\n\n## Install\nYou can use the these editor scripts in your own project by adding this project as a [Defold library dependency](https://www.defold.com/manuals/libraries/). Open your game.project file and in the dependencies field under project add:  \nhttps://github.com/Jerakin/editor-script-cleanup/archive/master.zip\n\n### macOS\nYou need to make your python installation visible to Defolds Java VM, you need to put your path modifications in\n`$HOME/.bash_profile`. This is because I `source $HOME/.bash_profile` and I opted do it this way instead of\n`export PATH=\"$PATH:/usr/local/bin\"` because if you are using `pyenv` and `pyenv-virtualenv` it would not pick up on that.\n \n\n### Dependencies\nYou also need to make sure you have python 3 and [deftree](https://github.com/Jerakin/DefTree) installed.  \nYou can easily install deftree with  \n`pip install deftree`\n\n## Editor Script\nThis library adds a few scripts that are made to help you clean up your project. Remember to **ALWAYS** commit all your changes before running these commands as they are all **highly destructive**.\n\n### Remove Unused Images From Project\nThis script removes all images that can not be found in any resource files\n\n### Remove Unused Images From Atlases\nThis script removes image entries in your atlas that are now missing on disk. For when you have checked removed images manually from explorer.\n\n### Remove Unused Resources from GUI\nThis script removes all Layers, Textures, Fonts etc from GUI files that are not using them. Beware that this is _not_ aware\nabout any switches happening in your lua or gui_scripts, meaning it will remove textures even if you change to them with\n`gui.set_texture` or similar for other resources.\n\n### Remove Duplicated Images in Atlases\nThis script removes duplicated images in an atlas. This can be useful if you have a folder of images that you now have added\na few more images. Instead of searching the images out you can add the full folder again and then simply run the script to\nstrip out the ones that got duplicated.\n\n## Something went wrong\nIf you want some more information of what is happening create a file in the root of your project called `python_log.txt`\nthe script checks for that file and output any logging to it. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerakin%2Feditor-script-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerakin%2Feditor-script-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerakin%2Feditor-script-cleanup/lists"}