Skip to content

Instantly share code, notes, and snippets.

@t2psyto
Created December 23, 2016 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t2psyto/a9d6f4f8fd1b2a820541cd526c35396c to your computer and use it in GitHub Desktop.
Save t2psyto/a9d6f4f8fd1b2a820541cd526c35396c to your computer and use it in GitHub Desktop.
Scratch2 ポータブル版の作り方。 Adobe Air ランタイムのインストール無し Scratch2 を起動する。
== Adobe Air ランタイムのインストール無しでScratch2オフライン版を起動する。(ポータブル版にする)
- AIRSDK_Compiler.zip
- 配布元: http://www.adobe.com/devnet/air/air-sdk-download.html
- ※zipファイルから以下のフォルダのみ展開する
- AIRSDK_Compiler\bin
- AIRSDK_Compiler\runtimes\air\win
- Scratch-451.exe
- 配布元: https://scratch.mit.edu/scratch2download/
- ※zipファイル「Scratch-451.exe.zip」にリネームして展開
※展開後フォルダ名を「Scratch 2」→「Scratch2」に変更
- start_scratch2_portable.bat
- start_scratch2_portable.vbs
- scratch2ポータブル版の起動用スクリプト。
- batで起動するとコマンドラインウィンドウが表示されてしまう。
- vbsから起動すると、コマンドライン非表示にできる。
== フォルダー パスの一覧
SCRATCH2_PORTABLE
| readme.txt
| start_scratch2_portable.bat
| start_scratch2_portable.vbs
|
+---AIRSDK_Compiler <- dir "AIRSDK_Compiler" contains files from "AIRSDK_Compiler.zip" remains followngs only.
| +---bin
| | adl.exe
| |
| \---runtimes
| \---air
| \---win
| \---Adobe AIR
| | sentinel
| |
| \---Versions
| \---1.0
| | Adobe AIR.dll
| |
| \---Resources
| | Adobe AIR.vch
| | adobecp.vch
| | CaptiveAppEntry.exe
| | NPSWF32.dll
| | Template.exe
| | template.msi
| | Thawte Root Certificate.cer
| | WebKit.dll
| |
| \---WebKit
| LGPL License.txt
| Notice WebKit.txt
|
\---Scratch2 <- dir "Scratch2" contains allfiles of "Scratch-451.exe"
| mimetype
| Scratch 2.exe
| Scratch.swf
| setup.msi
|
+---icons
+---locale
+---media
+---META-INF
+---static_tips
\---www
set THIS_DIR=%~dp0
set AIRSDK_Compiler=%THIS_DIR%\AIRSDK_Compiler
set APP_DIR=%THIS_DIR%\Scratch2
%AIRSDK_Compiler%\bin\adl.exe -runtime %AIRSDK_Compiler%\runtimes\air\win -nodebug -profile extendedDesktop %APP_DIR%\META-INF\AIR\application.xml %APP_DIR%
Set oWshShell = CreateObject("WScript.Shell")
set fso = createObject("Scripting.FileSystemObject")
THIS_DIR=fso.getParentFolderName(WScript.ScriptFullName)
AIRSDK_Compiler= THIS_DIR & "\AIRSDK_Compiler"
APP_DIR=THIS_DIR & "\Scratch2"
cmd = AIRSDK_Compiler & "\bin\adl.exe -runtime " & AIRSDK_Compiler & "\runtimes\air\win -nodebug -profile extendedDesktop " & APP_DIR & "\META-INF\AIR\application.xml " & APP_DIR
oWshShell.run cmd, 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment