{"id":13872212,"url":"https://github.com/compnerd/swift-win32-application","last_synced_at":"2025-10-06T16:02:17.059Z","repository":{"id":50243196,"uuid":"368364902","full_name":"compnerd/swift-win32-application","owner":"compnerd","description":"Template Project for using Swift/Win32","archived":false,"fork":false,"pushed_at":"2021-05-31T17:42:21.000Z","size":8,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T15:45:42.623Z","etag":null,"topics":["gui-application","swift","windows"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compnerd.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}},"created_at":"2021-05-18T01:19:50.000Z","updated_at":"2025-01-07T06:00:07.000Z","dependencies_parsed_at":"2022-09-18T15:50:37.730Z","dependency_job_id":null,"html_url":"https://github.com/compnerd/swift-win32-application","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/compnerd/swift-win32-application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-win32-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-win32-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-win32-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-win32-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compnerd","download_url":"https://codeload.github.com/compnerd/swift-win32-application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-win32-application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278638111,"owners_count":26019943,"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-10-06T02:00:05.630Z","response_time":65,"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":["gui-application","swift","windows"],"created_at":"2024-08-05T23:00:36.725Z","updated_at":"2025-10-06T16:02:17.024Z","avatar_url":"https://github.com/compnerd.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Windows Empty Swift Application Template\n\nThis provides a template project to build a Swift application on Windows using\n[Swift/Win32](https://github.com/compnerd/swift-win32).\n\n### Build Requirements\n\n- Swift 5.4 or newer\n- Windows SDK 10.0.10773 or newer\n- Swift/Win32 development\n\n### Building\n\nThe project can be built using Swift Package Manager's build command.\nAdditionaly, the application needs to have a manifest integrated into the\nbinary.  This requires additional operations which cannot be automated with\nSwift Package Manager currently.  Additionally, some files need to be deployed\nmanually as they need to be placed in a specific layout.\n\nCurrently, the LLVM manifest tool (`llvm-mt`) is unable to perform the operation\nand thus this must be done with the MSVC toolset.\n\n```cmd\nswift build\nmt -nologo -manifest Sources\\Application\\Application.exe.manifest -outputresource:.build\\x86_64-unknown-windows-msvc\\debug\\Application.exe\ncopy Sources\\Application\\Info.plist .build\\x86_64-unknown-windows-msvc\\debug\\\n```\n\n### Testing\n\nThe project uses [XCTest](https://github.com/apple/swift-corelibs-xctest) to add\nunit tests.  You can run the unit test suite using Swift Package Manager's test\ncommand.\n\n```cmd\nswift test\n```\n\n### Debugging\n\nIn order to debug the package, there are two options.  In order to debug with\nLLDB, which is required for debugging Swift code, the linker needs to preserve\nthe debug information.  This is accomplished by passing an additional flag\nduring the build.\n\n```cmd\nswift build -Xlinker -debug:dwarf\n```\n\nWhen trying to debug the interactions with the system, it is convenient to use\nthe Windows tooling for debugging (e.g. WinDBG).  In such a case, the debug\ninformation needs to be emitted for Windows.  This requires passing additonal\nflags to Swift Package Manager.\n\n```cmd\nswift build -Xswiftc -g -Xswiftc -debug-info-format=codeview -Xlinker -debug\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnerd%2Fswift-win32-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompnerd%2Fswift-win32-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnerd%2Fswift-win32-application/lists"}