バイナリでアプリケーションを配布する方法

□未翻訳

□翻訳中

□翻訳完了(Yota Ichino)

■レビュー(Omi Chiba)

バイナリでアプリケーションを配布する方法

web2pyのバイナリ形式の配布と一緒に独自のアプリケーションを同梱し、配布できます。web2pyをバンドルしている事をアプリケーションのライセンスに明確に記載している事、そしてweb2py.comへのリンクを追記していれば、web2pyのライセンスはこれを認めます。

It is possible to bundle your app with the web2py binary distribution and distribute them together. The license allows this as long you make clear in the license of your app that you are bundling with web2py and add a link to the web2py.com.

ここにWindows用の配布方法を説明します

Here we explain how to do it for Windows:

  • いつも通りあなたのアプリを製作

    • Create your app as usual

    • adminを使い、アプリケーションをバイトコードにコンパイル (1クリック)

    • Using admin, bytecode compile your app (one click)

    • adminを使い、コンパイル済みアプリケーションをパック (もう1クリック)

    • Using admin, pack your app compiled (another click)

  • "myapp"フォルダを生成

    • Create a folder "myapp"

  • Windows用のweb2pyバイナリ配布をダウンロード

    • Download a web2py windows binary distribution

  • それを"myapp"フォルダに解凍し、起動 (2クリック)

    • Unzip it in folder "myapp" and start it (two clicks)

    • adminを使いパックされたコンパイル済みアプリケーション名"init"をアップロード (1クリック)

    • Upload using admin the previously packed and compiled app with the name "init" (one click)

    • "cd web2py; web2py.exe"と書かれた"myapp/start.bat"ファイルを作成

    • Create a file "myapp/start.bat" that contains "cd web2py; web2py.exe"

    • あなたのアプリケーション用のライセンスと、"distributed with an unmodified copy of web2py from web2py.com"である明言に念を押させることを含んだ"myapp/license"ファイルを作成

    • Create a file "myapp/license" that contains a license for your app and make sure it states that it is being "distributed with an unmodified copy of web2py from web2py.com"

    • myappフォルダを"myapp.zip"ファイルに圧縮

    • Zip the myapp folder into a file "myapp.zip"

    • "myapp.zip"を配布及び/または販売

    • Distribute and/or sell "myapp.zip"

ユーザーが"myapp.zip"を解凍し"run"をクリックしたときに、彼らは"welcome"アプリケーションの代わりにあなたのアプリケーションを目にするでしょう。事前にPythonをインストールしてもらうことさえ、ユーザ側には何も要求しません。

When users will unzip "myapp.zip" and click "run" they will see your app instead of the "welcome" app. There is no requirement on the user side, not even Python pre-installed.

Mac用のバイナリを生成する過程も同じですが、"bat"ファイルは要りません。

For Mac binaries the process is the same but there is no need for the "bat" file.