Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.