Kivy has been introduced. (End)
It will be the second time of the irregular serialization as soon as possible.
I want to create an extension app or an extension exe and start it with one click! Or even if you can't start it, you want to reach the point where you can generate it!
It seems that buildozer and pyinstaller are required to create apps and exes. Hmm ... Can you show me how to use it? I thought, so please see the following article.
Creating packages for OS X Create a package for Windows
If you write about each environment, it looks like the following.
Mac OS
Since it is a Mac OS environment, creating a Mac OS application seems easy </ s>.
You can install buildozer by doing the following:
pip install git+http://github.com/kivy/buildozer cd /to/where/I/Want/to/package buildozer init
$ pip install git+http://github.com/kivy/buildozer cd /to/where/I/Want/to/package buildozer init
Invalid requirement: '/to/where/I/Want/to/package'
It looks like a path. Does it exist ?
???
!?
cd / to / where / I / Want / to / package
Hey!
Please do this again
pip install git+http://github.com/kivy/buildozer
Use the previous sample.
$ python xxx.py
$ buildozer osx release
The result is here.
$ buildozer osx release
# Ensure build layout
No buildozer.spec found in the current directory. Abandon.
$ buildozer osx debug
# Ensure build layout
No buildozer.spec found in the current directory. Abandon.
It seems that you need a .spec file whether you debug or release it. It takes about 1 minute to follow the site to get information.
pip install -U pyinstaller
I will find that, so I will execute it.
And I feel like I was told to hit this, so I'll try it.
pyinstaller -y --clean --windowed --name touchtracer \
--exclude-module _tkinter \
--exclude-module Tkinter \
--exclude-module enchant \
--exclude-module twisted \
./xxx.py
The log is flowing ... pounding.
22442 INFO: moving BUNDLE data files to Resource directory
If the log is output, it seems that it was done.
There are folders called build
and dist
.
I was able to do it, but the content is not an application that starts, so I can make it for the time being. I will do my best in the contents after this article.
It feels like I've tried it, and learning to start kivi from the command line is different from the description that can be generated from kivi and the application can be used. The ultimate goal is to create apps on multiple platforms, so it seems that we have to learn the latter.
Windows
Next is windows. It seems that windows should actually have a pyinstaller, but it has already been installed.
So what should I do?
When I looked it up, I found the answer in a few seconds.
python -m PyInstaller --name touchtracer ./xxx.py
Or
python -m PyInstaller --name touchtracer --icon ./icon.ico ./xxx.py
It's okay.
There was a touchtracer
in build / touchtracer /.
It's easier than a Mac.
Next time, I would like to generate a command line-free kivy app that works on both windows and mac. Ora, I'm excited!
iOS and Android are another opportunity Let's try it. It seems that you can build with a similar feeling.
Recommended Posts