4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows で asar を作る

Posted at
work
└─app
        index.html
        main.js
        package.json

http://nodejs.org/dist/v0.12.4/node.exe
をダウンロードし、work ディレクトリに配置

http://nodejs.org/dist/npm/npm-1.4.12.zip
をダウンロードし、展開した node_modules と npm.cmd を work ディレクトリに配置

work
│  node.exe
│  npm-1.4.12.zip
│  npm.cmd
│  
├─app
│      index.html
│      main.js
│      package.json
│      
└─node_modules
    └─npm

asar をインストール
npm install asar

work
│  node.exe
│  npm-1.4.12.zip
│  npm.cmd
│  
├─app
│      index.html
│      main.js
│      package.json
│      
└─node_modules
    ├─.bin
    │      asar
    │      asar.cmd
    │      
    ├─asar
    └─npm

asarパッケージを作成
node_modules\.bin\asar.cmd pack app app.asar

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?