Here I layed some very usable and common instructions about this project to myself (or another devloper) to do not fail in any of steps.
- Edit
VERSIONvariable insafebox-gui.py - In
README.mdfile there are few places version numbers + a version banner icon - Edit
fileversandprodversvariable inversion.rc
- note: as opensource-system versioning has 3 digits in ver and windows has 4 digits versioning system, I must add a zero(0) at the ending digit.
e.g.
1.2.0to1.2.0.0.or in another example1.2.7to1.2.7.0
pyinstaller --onefile --noconsole --add-data "modules;modules" --add-data "setup.py;." --add-data "safebox.py;." --version-file="version.rc" --icon "gui_icon.ico" --name SafeBox_GUI gui.pypyinstaller --onefile --add-data "modules;modules" --add-data "setup.py;." --icon "cli_icon.ico" --version-file="version.rc" --name safebox safebox.pypyinstaller --onefile --noconsole --add-data="modules:modules" --add-data="setup.py:." --add-data="safebox.py:." --version-file="version.rc" --icon "gui_icon.ico" --name SafeBox_GUI gui.pypyinstaller --onefile --add-data="modules:modules" --add-data="setup.py:." --icon "cli_icon.ico" --version-file="version.rc" --name safebox safebox.pyFirst make directory structure as bellow:
safebox
├── DEBIAN
│ └── control
└── usr
├── bin
│ ├── safebox
│ └── safebox-gui
└── share
├── applications
│ └── safebox.desktop
└── icons
└── hicolor
└── 48x48
└── apps
└── safebox.png
Now safebox/DEBIAN/control file:
Package: safebox
Version: 1.2.0
Section: utils
Priority: optional
Architecture: amd64
Maintainer: S4D0X <faredba@outlook.com>
Description: SafeBox File Security Tool
A powerful open-source file encryption and decryption tool with GUI.
time for usr/share/applications/safebox.desktop file:
[Desktop Entry]
Name=SafeBox-GUI
Type=Application
Exec=safebox-gui
Icon=safebox
GenericName=Safe File Encryption/Decryption App
Categories=GTK;Utility;Security;
Keywords=safebox;security;encrypt;decrypt;locker;crypto;ssb;s4d0x;sadox;
Comment=Encrypt and decrypt files securely.
StartupNotify=true
make sure the safebox (the cli file), safebox-gui (the gui version) copied to safebox/usr/bin/ and all done as above tree.
sudo dpkg-deb --build safeboxit will deploy safebox.deb then we can share it or can install like dpkg -i safebox.deb
done for now.