Best way to deploy an app for private company use
My apologies if this has been answered in the past, but I have been searching and coming up empty. I am very new to programming in general, but I have written an app for people in my company to use. I am wondering what the best way to deploy it is. If everyone downloads the Pythonista app, and I put my app on their iPad, then they can use it but it is very easy for them to accidentally mess up the code and render it useless. If this is the best option then so be it, but I thought I'd ask the question and see what you all have to say. Thank you.
I haven't done this yet, but it is possible to submit pythonista apps to the AppStore. On omz's GitHub (the admin) you can find a template for using pythonista code in Xcode, from where your code can be submitted for everyone to download.
if you use pythonista, you could have your script wtite-protect itself, which at least makes it harder to accidentally edit. or put the major logic inside a zip file, and use zipimport
i'd hash the py files to see if something changed but I don't know how well that will work and it only tells you something is wrong and doesn't fix it
@Drizzel thank you, I’ve read about this. Needs to be Python 2.x, right?
@JonB I’ll google how to write-protect... didn’t know you could do that. I don’t understand about the zip file thing. Could you elaborate how this works?
@ellie_ff1493 good idea; at least I’d know if an error was an unintended edit or some other problem.
as for zipmport, you would do
then simply import the name
so your main script might look like
where you include a file myapp.py in myfile.zip, which includes a main() function that has your app's logic.
for initial installation, you might point them to a bit.ly link which includes an executable url: