Skip to content

Commit

Permalink
Added command to create standalone binary in windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
chitholian committed Aug 3, 2021
1 parent 515f49a commit 6aabe69
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

# Bangla Dictionary

A feature-riched dictionary for translating words from English to Bangla and vice-versa.

A feature-rich dictionary for translating words from English to Bangla and vice-versa.

## Features

Expand All @@ -17,7 +16,6 @@ A feature-riched dictionary for translating words from English to Bangla and vic
1. Stay Above Other Windows
1. Auto Detect Language


## Build and Run

You need `Python v3.5+` and `PyQt5` installed to run this app from source.
Expand All @@ -37,8 +35,16 @@ You can also create standalone executable from the source.

### Create Standalone Executable

#### Linux

```sh
pyinstaller -w -i assets/icon.ico -n "Bangla Dictionary" --add-data "assets:assets" -F main.py
```

#### Windows

```sh
pyinstaller -w -i assets/icon.ico -n "Bangla Dictionary" --add-data assets:assets -F main.py
pyinstaller -w -i assets/icon.ico -n "Bangla Dictionary" --add-data "assets;assets" -F main.py
```

Now look inside the `dist` directory (created automatically) for the standalone executable.
Expand All @@ -61,7 +67,7 @@ sudo cp assets/icon.png /opt/apps/bangla-dictionary/icon.png
#### Create Desktop Entry:

```sh
cat <<EOT > /usr/share/applications/bangla-dictionary.desktop
cat <<EOT | sudo tee /usr/share/applications/bangla-dictionary.desktop
[Desktop Entry]
Version=1.0
Type=Application
Expand Down

0 comments on commit 6aabe69

Please sign in to comment.