Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mimemagic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
mimemagic
Commits
ed00cf0c
Commit
ed00cf0c
authored
Mar 25, 2021
by
Jon Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Windows instructions
parent
86ed210d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
README.md
+10
-5
No files found.
README.md
View file @
ed00cf0c
...
...
@@ -16,12 +16,17 @@ when the gem is installed.
macOS users can install the database via Homebrew with
`brew install shared-mime-info`
.
If for whatever reason you can't do either of those things, you'll need to obtain a copy from the Internet. Set
the environment variable
`FREEDESKTOP_MIME_TYPES_PATH`
before installing the gem in order to point the build at
that location.
Should you be unable to use a package manager you can obtain a copy of the needed file by extracting it from
the Debian package. This process will also work on a Windows machine.
(TODO: Locate a reliable source for the compiled file, and link to it both here, and in the error message if
one isn't found.)
1.
Download the package from https://packages.debian.org/sid/amd64/shared-mime-info/download
2.
Ensure the command line version of 7-Zip is installed
3.
`7z x -so shared-mime-info_2.0-1_amd64.deb data.tar | 7z e -sidata.tar "./usr/share/mime/packages/freedesktop.org.xml"`
Place the file
`freedesktop.org.xml`
in an appropriate location, and then set the environment variable
`FREEDESKTOP_MIME_TYPES_PATH`
to that path. Once that has been done the gem should install successfully. Please
note that the gem will depend upon the file remaining in that location at run time.
Usage
=====
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment