Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leokuma/wincompile
Compile Deno apps for Windows with custom icon and metadata.
https://github.com/leokuma/wincompile
binary compile deno icon metadata windows
Last synced: 18 days ago
JSON representation
Compile Deno apps for Windows with custom icon and metadata.
- Host: GitHub
- URL: https://github.com/leokuma/wincompile
- Owner: Leokuma
- License: mit
- Created: 2023-12-24T01:35:48.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T05:05:52.000Z (8 months ago)
- Last Synced: 2024-10-09T06:43:07.954Z (28 days ago)
- Topics: binary, compile, deno, icon, metadata, windows
- Language: TypeScript
- Homepage: https://deno.land/x/wincompile
- Size: 33.2 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wincompile
Wincompile is a CLI tool to compile Deno apps for Windows with custom icon and metadata.### Examples
```
wincompile --Icon=abc.ico -- -A --unstable main.ts
``````
wincompile --Icon="C:/Program Files/my program/my icon.ico" --FileDescription="Super App" --FileVersion=1.0.2 --ProductVersion=1.0.2.standard -- --allow-all --unstable main.ts
``````
wincompile -- -A --unstable app.ts
```Run `wincompile` in the command line to see more usage information.
> Windows caches EXEs' icons, so it may look like the icon wasn't applied. Change the EXE name or move it to another folder to force Windows to reload the icon.
### Install
```
deno run -r --allow-run --allow-env --allow-read https://deno.land/x/wincompile/install.ts
```
The command above can also be used to update Wincompile.### Uninstall
```
deno uninstall wincompile
```### Run remotely
You can also run Wincompile remotely instead of installing it:
```
deno run -A --import-map=https://deno.land/x/wincompile/import_map.json https://deno.land/x/wincompile/wincompile.ts --Icon=abc.ico -- -A --unstable main.ts
```## How it works
Wincompile uses Electron's [rcedit](https://github.com/electron/rcedit) to create a patched version of Deno on the fly just to compile your app. After compilation, the patched Deno is deleted.