2017-09-26 65 views
0

我想將我的nw.js應用程序壓縮成zip文件。於是我運行此:zip -r與〜/部分複製我的系統目錄

"win.sh" 3L, 121C 
cp ~/nout/package.nw ~/nout/win/QuantumPilotWin/package.nw 
zip -r ~/nout/QuantumPilotWin.zip ~/nout/win/QuantumPilotWin 

我預期的zip文件是一個單一的文件夾,那的QuantumPilotWin

,而不是我得到這個結構enter image description here

我如何zip不完整路徑?

編輯:

試圖喬的步驟,我在解壓縮文件夾了這一點:

enter image description here

enter image description here

回答

1

運行,當你在〜/ NOUT -r命令的zip /勝/,所以:

cd ~/nout/win/ 
zip -r ~/nout/QuantumPilotWin.zip QuantumPilotWin 
+0

這樣更好..但還是給了我一個用戶su bdirectory。請參閱編輯 – quantumpotato

+0

@quantumpotato該用戶文件夾的內容是什麼? – Joe

+0

我把它放在一個編輯(從底部第二張截圖) – quantumpotato