From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: extracting a zip archive via elisp (with no external executables) Date: Sun, 09 Jul 2017 22:45:13 +0300 Message-ID: <837ezhjsxi.fsf@gnu.org> References: <6DD83BBE-94C7-40ED-A4DD-21BC4B0E834D@gmail.com> <20170709185119.GA21572@breton.holly.idiocy.org> <38400216-AEF4-404C-80ED-0A28FB85E30E@gmail.com> <7F95AA86-3B51-48C6-9C75-2FDB9B8047F0@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1499629573 26585 195.159.176.226 (9 Jul 2017 19:46:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2017 19:46:13 +0000 (UTC) Cc: alan@idiocy.org, emacs-devel@gnu.org, kaushal.modi@gmail.com To: Saulius =?utf-8?Q?Menkevi=C4=8Dius?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 21:46:04 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUI9Y-0006H7-V3 for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 21:46:01 +0200 Original-Received: from localhost ([::1]:37227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUI9c-0005Xj-Lp for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 15:46:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUI93-0005Xd-7F for emacs-devel@gnu.org; Sun, 09 Jul 2017 15:45:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUI8z-00049H-7E for emacs-devel@gnu.org; Sun, 09 Jul 2017 15:45:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUI8z-00049D-3V; Sun, 09 Jul 2017 15:45:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3398 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dUI8w-0001Oc-P4; Sun, 09 Jul 2017 15:45:24 -0400 In-reply-to: <7F95AA86-3B51-48C6-9C75-2FDB9B8047F0@gmail.com> (message from Saulius =?utf-8?Q?Menkevi=C4=8Dius?= on Sun, 9 Jul 2017 22:26:45 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216374 Archived-At: > From: Saulius Menkevičius > Date: Sun, 9 Jul 2017 22:26:45 +0300 > Cc: Alan Third , Emacs developers > > I am one of the maintainers of the C# package for emacs https://github.com/OmniSharp/omnisharp-emacs > For the package to work properly it needs to run language server, which > should be downloaded from https://github.com/OmniSharp/omnisharp-roslyn/releases > > I have added a new interactive command omnisharp-install-server which > downloads and installs the server to ~/.emacs.d/.cache/omnisharp/server/ directory. > Thus aleviating the need for the user to navigate to web page, download, extract > and the configure package to point to the location where the server has been extracted. > > For UNIX systems things are easy, I just download tarball and extract it with (call-process „tar“ .. „xz“..) > > But on Windows things get tough, apparently. Not really. This should get them going: (w32-shell-execute "open" "FILENAME.zip") or (w32-shell-execute "explore" "FILENAME.zip") (replace FILENAME.zip with the actual file name). This will open the Windows Explorer showing the contents of the zip archive, and you should tell your users to click "File->Extract all" to extract the files into the directory of their choosing. > Instructing the user to install 7-zip or something else manually kind of > invalidates the purpose of automatic installation. Please never suggest to install 7z, it's not Free Software on Windows (and on Unix it's less capable to make it Free Software). If someone needs 7z capabilities, the best Free Software alternative is bsdtar from the libarchive project.