-
Notifications
You must be signed in to change notification settings - Fork 11
Development
To ensure you receive accurate and reliable hardware results while testing, I recommend developing Kano Burner on a native machine. If you prefer a virtualised environment, test the application thoroughly.
The project will require you to install a few dependencies before starting to develop.
# Install PyQt4
brew install pyqt
# Install PySmartDL, because of its own dependencies - easier this way
sudo pip install pysmartdl
# Install PyInstaller to build the project
sudo pip install pyinstaller
The application also uses the following tools which should be installed by default.
awk
dd
df
diskutil
grep
gzip
kill
osascript
pgrep
Now simply git clone
the repo and happy coding!
Do not forget to run kano-burner
with sudo
!
Using PyInstaller
and the build scripts in build/osx, the application can be packaged as a single .app
bundle and will run as a normal Mac app.
There are 4 easy steps to building:
1. Disable debugger outputs for distribution
If you're building for distribution, do not forget to turn off debugger outputs in src/common/utils.
Only keep this setting ON if you're testing the build (highly recommended).
2. Generate Kano Burner.spec
file
# Go to build/osx
cd build/osx
# Run make-spec.sh
make-spec.sh
3. Customise Kano Burner.spec
-
Edit the
pathex
field in theAnalysis
object to point at the repo, e.g.pathex=['/Users/username/Kano/kano-burners']
-
Copy everything from build/include.py and paste into
Kano Burner.spec
between theAnalysis
andPYZ
objects.
Example OSX Kano Burner.spec
4. Run the build script
# From build/osx run WITHOUT SUDO!
# I recommend reading the script beforehand
./build.sh
You will now find the application in the folder Kano Burner
on the Desktop and it will have the Kano SD card icon. You do not need the console executable or the build
folder. For distribution, put the application in a .dmg
and upload.
To ensure you receive accurate and reliable hardware results while testing, I recommend developing Kano Burner on a native machine. If you prefer a virtualised environment, test the application thoroughly.
The project will require you to install a few dependencies before starting to develop.
# Install PyQt4
sudo apt-get install python-qt4
# Install PySmartDL, because of its own dependencies - easier this way
sudo pip install pysmartdl
The application also uses the following tools which should be installed by default.
awk
dd
df
eject
fdisk
grep
gzip
kill
mkdosfs
parted
pgrep
umount
Now simply git clone
the repo and happy coding!
Do not forget to run kano-burner
with sudo
!
To ensure you receive accurate and reliable hardware results while testing, I recommend developing Kano Burner on a native machine. If you prefer a virtualised environment, test the application thoroughly.
The project will require you to install a few dependencies before starting to develop.
- Python2.7 x86
- PyQt4 for Python2.7 x32
- pywin32
- futures
Using PyInstaller
and the build scripts in build/osx, the application can be packaged as a single .app
bundle and will run as a normal Mac app.
There are 4 easy steps to building:
1. Disable debugger outputs for distribution
If you're building for distribution, do not forget to turn off debugger outputs in src/common/utils.
Only keep this setting ON if you're testing the build (highly recommended).
2. Generate Kano Burner.spec
file
# Go to build/osx
cd build/osx
# Run make-spec.sh
make-spec.sh
3. Customise Kano Burner.spec
-
Edit the
pathex
field in theAnalysis
object to point at the repo, e.g.pathex=['/Users/username/Kano/kano-burners']
-
Copy everything from build/include.py and paste into
Kano Burner.spec
between theAnalysis
andPYZ
objects.
Example OSX Kano Burner.spec
4. Run the build script
# From build/osx run WITHOUT SUDO!
# I recommend reading the script beforehand
./build.sh
You will now find the application in the folder Kano Burner
on the Desktop and it will have the Kano SD card icon. You do not need the console executable or the build
folder. For distribution, put the application in a .dmg
and upload.