前はNotepad+を使っていたけど、良いんだけど文字コードには弱かった。
最近はやっているAtom。慣れてきた。実は Atom 普通にインストールすると、インストール先の選択とか聞かれずにそのまま Atom が立ち上がってきてしまう。
でもコッソリと Atom したい。その時のメモ。
普通にインストール
Atom1.44.0のホームページで(https://atom.io/)にアクセスすると、ダウンロードの項目が直ぐに見える。
個々をクリックしてインストールすると、AtomがNode.jsと共にインストールされる。
Windowsの場合ユーザーディレクトリ以下にインストールされ、PCに複数ユーザーが居てもインストールしたユーザしか使えない。
Atomをポータブルインストール
PortableAppsでもリクエストAtom.ioはあるが(https://portableapps.com/node/53604)既にSorceforge でまとめた方が居ると後出しになっている。
Sorceforge – Atom Portable (https://sourceforge.net/projects/atomportable/)によれば、1.38 。まあ古くないほうだろう。
Portableappsのインストールは .paf.exeをダウンロードして Portableappsに読ませるのが普通だが、このパッケージはダウンロードして展開されたフォルダー以下を Portableapps のプログラムフォルダーにコピーする必要がある。その後Portableappsを再起動すればAtomが使える。
起動しても%userprofile%に.atomは作成されない。代わりにPortableappsのプログラム以下にAtomというディレクトリが出来ている。
ソフトウェア自動アップデートは実施されない
インストールするとバージョンは1.25.1。しかも自動アップデートはしないとある。
Install Guideなポータブルインストール
atom.ioのマニュアルを読むとこのような方法がある。
・atomは通常 %userprofile% 以下のディレクトリに構成される。
・けれどもリムーバブルストレージデバイス等に保存するポータブルモードもある。
失敗: Atomをポータブルモードでセットアップするには
1. (通常のダウンロードではなく)zip/tar.gzパッケージをダウンロードしリムーバブルディスクに解凍。
2. atom.exeを含むディレクトリに空の.atom フォルダを作成。
これでポータブルモードになるはず。けれども実際にはなりませんでした。
Installing Atom
……
Portable Mode
Atom stores configuration and state in a
.atom
directory usually located in your home directory (%userprofile%
on Windows). You can however run Atom in portable mode where both the app and the configuration are stored together such as on a removable storage device.To setup Atom in portable mode download the zip/tar.gz package for your system and extract it to your removable storage.
Then create a
.atom
directory alongside the directory that contains atom.exe, for example: (<訳注 以下の例えが一番分からない>)e:\atom-1.14\atom.exe e:\.atom
Portable Notes
- The
.atom
directory must be writeable- You can move an existing
.atom
directory to your portable device- Atom can also store its Electron user data in your
.atom
directory – just create a subdirectory calledelectronUserData
inside.atom
- Alternatively you can set the
ATOM_HOME
environment variable to point wherever you want (you can write a .sh or .cmd script to temporarily set it and launch it from that)- Portable mode installations will not automatically update
どうも内容が古いようです。テストでC:直下でwindows ウィザードですべて展開すると
\atom-windows\以下フォルダ2つのみ。atom.exe ファイルは\atom-windws\atom\以下にあります。
マニュアルによると実行ファイルと共に「.atom」フォルダを作り、atomを実行すると
見事にユーザーフォルダ内に.atom が作成されました。
せっかく作ったポータブル用 .atom も確認してみても
当然ですが、使われた形跡がありません。
成功例: atom をポータブルモードで起動する
1. windows-zipをダウンロード(https://github.com/atom/atom/releases/tag/v1.44.0)
2. メディアに展開。(テストのためC:\直下)。
3. 展開したディレクトリ内に「.atom」を作成。atom起動。
4. 無事に作成した「.atom」が使用されているのを確認。
.atomを作成した状態でzipしたらポータブル版の完成?
もしかしてだけど、
この状態で zip 圧縮して配布してもらったほうが便利なような。
ソフトウェア自動アップデートは実施されない
この方法でも自動アップデートはされない。但し、思い立ったころにアップデートしても問題ないほどに作り込まれたソフトだが。
当たり前だが最新のバージョンが使用できる。