Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create icon files during installation #11

Open
alexiswl opened this issue Feb 23, 2023 · 2 comments
Open

Failed to create icon files during installation #11

alexiswl opened this issue Feb 23, 2023 · 2 comments

Comments

@alexiswl
Copy link

alexiswl commented Feb 23, 2023

Hello,

I ran the cargo bundle command as follows

cargo bundle --release

Which generated the following logs and exited with exit code 1

Details
$ cargo bundle --release
   Compiling glib-sys v0.16.3
   Compiling gobject-sys v0.16.3
   Compiling gio-sys v0.16.3
   Compiling proc-macro-crate v1.1.0
   Compiling futures-macro v0.3.17
   Compiling proc-macro-error v1.0.4
   Compiling thiserror v1.0.30
   Compiling futures-channel v0.3.17
   Compiling smallvec v1.10.0
   Compiling glib-macros v0.16.3
   Compiling pango-sys v0.16.3
   Compiling futures-util v0.3.17
   Compiling cairo-sys-rs v0.16.3
   Compiling cfg-if v1.0.0
   Compiling gio v0.16.7
   Compiling gdk-sys v0.16.0
   Compiling futures-executor v0.3.17
   Compiling atk-sys v0.16.0
   Compiling num-traits v0.2.14
   Compiling ucd-trie v0.1.3
   Compiling futures-io v0.3.17
   Compiling crc32fast v1.3.0
   Compiling glib v0.16.7
   Compiling pest v2.1.3
   Compiling gdk-pixbuf-sys v0.16.3
   Compiling num-integer v0.1.44
   Compiling adler v1.0.2
   Compiling miniz_oxide v0.6.2
   Compiling semver-parser v0.10.2
   Compiling num-rational v0.4.1
   Compiling unic-char-range v0.9.0
   Compiling unic-common v0.9.0
   Compiling unic-ucd-version v0.9.0
   Compiling unic-char-property v0.9.0
   Compiling flate2 v1.0.25
   Compiling semver v0.11.0
   Compiling pangocairo-sys v0.16.3
   Compiling gtk-sys v0.16.0
   Compiling tinystr v0.3.4
   Compiling unic-langid-impl v0.9.0
   Compiling rustc_version v0.3.3
   Compiling png v0.17.7
   Compiling unic-ucd-bidi v0.9.0
   Compiling memoffset v0.6.4
   Compiling color_quant v1.1.0
   Compiling byteorder v1.4.3
   Compiling bytemuck v1.7.2
   Compiling arrayvec v0.7.1
   Compiling matches v0.1.9
   Compiling cairo-rs v0.16.7
   Compiling kurbo v0.9.0
   Compiling unic-bidi v0.9.0
   Compiling image v0.24.5
   Compiling field-offset v0.3.4
   Compiling unic-langid v0.9.1
   Compiling piet v0.6.2
   Compiling tracing-core v0.1.30
   Compiling gtk v0.16.2
   Compiling unicode-segmentation v1.10.1
   Compiling rustc-hash v1.1.0
   Compiling xi-unicode v0.3.0
   Compiling type-map v0.4.0
   Compiling pango v0.16.5
   Compiling gdk-pixbuf v0.16.7
   Compiling atk v0.16.0
   Compiling pangocairo v0.16.3
   Compiling piet-cairo v0.6.2
   Compiling gdk v0.16.2
   Compiling gtk3-macros v0.16.0
   Compiling anyhow v1.0.69
   Compiling tracing-attributes v0.1.23
   Compiling time-core v0.1.0
   Compiling overload v0.1.1
   Compiling lazy_static v1.4.0
   Compiling druid-shell v0.8.0 (https://github.com/linebender/druid#115e46c5)
   Compiling sharded-slab v0.1.4
   Compiling tracing v0.1.37
   Compiling nu-ansi-term v0.46.0
   Compiling time v0.3.19
   Compiling piet-common v0.6.2
   Compiling intl-memoizer v0.5.1
   Compiling intl_pluralrules v7.0.1
   Compiling fluent-langneg v0.13.0
   Compiling instant v0.1.12
   Compiling thread_local v1.1.7
   Compiling fluent-syntax v0.11.0
   Compiling keyboard-types v0.6.2
   Compiling self_cell v0.10.2
   Compiling fluent-bundle v0.15.2
   Compiling tracing-subscriber v0.3.16
   Compiling druid-derive v0.5.0 (https://github.com/linebender/druid#115e46c5)
   Compiling fnv v1.0.7
   Compiling druid v0.8.2 (https://github.com/linebender/druid#115e46c5)
   Compiling ascii-d v0.2.0 (/home/alexiswl/GitHub/HUYTD/ascii-d)
warning: unused imports: `Code`, `Event`
 --> src/main.rs:4:44
  |
4 |     AppDelegate, AppLauncher, Application, Code, Command, DelegateCtx, Env, Event, Handled,
  |                                            ^^^^                             ^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `Application`
 --> src/widgets/toolbar.rs:7:5
  |
7 |     Application, Color, Event, FileDialogOptions, FileInfo, FileSpec, ImageBuf, Point, Rect,
  |     ^^^^^^^^^^^

warning: unused variable: `data`
  --> src/main.rs:92:9
   |
92 |         data: &mut ApplicationState,
   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `env`
  --> src/main.rs:93:9
   |
93 |         env: &Env,
   |         ^^^ help: if this is intentional, prefix it with an underscore: `_env`

warning: unused variable: `ctx`
  --> src/main.rs:94:9
   |
94 |         ctx: &mut DelegateCtx,
   |         ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

warning: unused variable: `handle`
   --> src/main.rs:108:9
    |
108 |         handle: druid::WindowHandle,
    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle`

warning: unused variable: `data`
   --> src/main.rs:109:9
    |
109 |         data: &mut ApplicationState,
    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_data`

warning: unused variable: `env`
   --> src/main.rs:110:9
    |
110 |         env: &Env,
    |         ^^^ help: if this is intentional, prefix it with an underscore: `_env`

warning: unused variable: `ctx`
   --> src/main.rs:111:9
    |
111 |         ctx: &mut DelegateCtx,
    |         ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

warning: unused variable: `target`
   --> src/main.rs:119:9
    |
119 |         target: Target,
    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target`

warning: unused variable: `data`
   --> src/main.rs:121:9
    |
121 |         data: &mut ApplicationState,
    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_data`

warning: unused variable: `env`
   --> src/main.rs:122:9
    |
122 |         env: &Env,
    |         ^^^ help: if this is intentional, prefix it with an underscore: `_env`

warning: constant `CHAR_NEWLINE` is never used
  --> src/consts.rs:27:11
   |
27 | pub const CHAR_NEWLINE: char = '\n';
   |           ^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: associated function `newline` is never used
  --> src/data/grid_cell.rs:23:12
   |
23 |     pub fn newline() -> Self {
   |            ^^^^^^^

warning: `ascii-d` (bin "ascii-d") generated 14 warnings
    Finished release [optimized] target(s) in 1m 41s
    Bundling ascii-d_0.2.0_amd64.deb
error: Failed to create icon files
  Caused by: element to be decoded contains JPEG 2000 data, which is not yet supported

System details

Click to expand!

Ubuntu Version

PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
@huytd
Copy link
Owner

huytd commented Feb 23, 2023

This might makes sense, since I used the ICNS icon, probably it was meant to be used on macOS only. I'll add a PNG icon to the bundle. Thank you so much!

@johnblommers
Copy link

This might makes sense, since I used the ICNS icon, probably it was meant to be used on macOS only. I'll add a PNG icon to the bundle. Thank you so much!

I found the same thing installing it on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants