subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.51k stars 63 forks source link

Released zip file seems uses backslashes as path separators #78

Closed oluceps closed 1 year ago

oluceps commented 1 year ago

Which should not, this may cause some difficulties to non-windows users.

According to .ZIP File Format Specification

4.4.17 file name: (Variable)

  4.4.17.1 The name of the file, with optional relative path.
  The path stored MUST NOT contain a drive or
  device letter, or a leading slash.  All slashes
  MUST be forward slashes '/' as opposed to
  backwards slashes '\' for compatibility with Amiga
  and UNIX file systems etc.  If input came from standard
  input, there is no file name field.  

Info of latest release zips (6.0)

> unzip -Z -l MapleMono-NF.zip
Archive:  MapleMono-NF.zip
Zip file size: 3352849 bytes, number of entries: 6
-rw----     2.0 fat   920916 b-   556607 defN 23-Jan-02 19:25 NF\MapleMono-NF-Bold.ttf
-rw----     2.0 fat   927060 b-   561839 defN 23-Jan-02 19:25 NF\MapleMono-NF-BoldItalic.ttf
-rw----     2.0 fat   927220 b-   560525 defN 23-Jan-02 19:25 NF\MapleMono-NF-Italic.ttf
-rw----     2.0 fat   921196 b-   555945 defN 23-Jan-02 19:25 NF\MapleMono-NF-Light.ttf
-rw----     2.0 fat   927156 b-   561137 defN 23-Jan-02 19:25 NF\MapleMono-NF-LightItalic.ttf
-rw----     2.0 fat   922136 b-   555992 defN 23-Jan-02 19:25 NF\MapleMono-NF-Regular.ttf
6 files, 5545684 bytes uncompressed, 3352045 bytes compressed:  39.6%
> unzip MapleMono-NF.zip
Archive:  MapleMono-NF.zip
warning:  MapleMono-NF.zip appears to use backslashes as path separators
  inflating: NF/MapleMono-NF-Bold.ttf
  inflating: NF/MapleMono-NF-BoldItalic.ttf
  inflating: NF/MapleMono-NF-Italic.ttf
  inflating: NF/MapleMono-NF-Light.ttf
  inflating: NF/MapleMono-NF-LightItalic.ttf
  inflating: NF/MapleMono-NF-Regular.ttf

also see: this issue and https://github.com/icsharpcode/SharpZipLib/issues/617

oluceps commented 1 year ago

And I did have difficulties while packaging this font for Linux distros due to these backslashes.

subframe7536 commented 1 year ago

fix in v6.1

test on debian 11

$ unzip MapleMono-NF.zip
Archive:  MapleMono-NF.zip
  inflating: NF/MapleMono-NF-Bold.ttf
  inflating: NF/MapleMono-NF-BoldItalic.ttf
  inflating: NF/MapleMono-NF-Italic.ttf
  inflating: NF/MapleMono-NF-Light.ttf
  inflating: NF/MapleMono-NF-LightItalic.ttf
  inflating: NF/MapleMono-NF-Regular.ttf