Skip to content

Commit 212e491

Browse files
author
igorljubuncic
authored
Merge pull request #9 from galgalesh/master
Update Metadata and Fix ffmpeg
2 parents e03e55d + 3200fc4 commit 212e491

File tree

5 files changed

+94
-20
lines changed

5 files changed

+94
-20
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# gitginore template for creating Snap packages
2+
# website: https://snapcraft.io/
3+
4+
parts/
5+
prime/
6+
stage/
7+
*.snap
8+
9+
# Snapcraft global state tracking data(automatically generated)
10+
# https://forum.snapcraft.io/t/location-to-save-global-state/768
11+
/snap/.snapcraft/
12+
13+
# Source archive packed by `snapcraft cleanbuild` before pushing to the LXD container
14+
/*_source.tar.bz2
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
#
3+
# This script modifies the preferences of an old OpenToonz snap version in order to correctly set the ffmpeg path.
4+
#
5+
6+
# Only run this command once so we don't add extra startup time after the upgrade.
7+
if [[ ! -f "$SNAP_USER_COMMON/ffmpeg-path-fixed" ]]; then
8+
PREFERENCES_FILE="$SNAP_USER_COMMON/.config/OpenToonz/stuff/profiles/layouts/settings.$USER/preferences.ini"
9+
10+
# If the file doesn't exist, it will be created by OpenToonz using the correct template in this snap, so no action is needed.
11+
if [[ -f "$PREFERENCES_FILE" ]]; then
12+
crudini --set "$PREFERENCES_FILE" General ffmpegPath "/snap/opentoonz-morevna/current/usr/bin/"
13+
fi
14+
touch "$SNAP_USER_COMMON/ffmpeg-path-fixed"
15+
fi
16+
17+
# Run the next command in the command-chain
18+
exec "$@"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[General]
2+
ffmpegPath=/snap/opentoonz-morevna/current/usr/bin/

snap/gui/opentoonz-morevna.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Desktop Entry]
22
Type=Application
3-
Name=OpenToonz - Morevna Edition
3+
Name=OpenToonz (Morevna Edition)
44
Exec=opentoonz-morevna
55
Icon=${SNAP}/meta/gui/opentoonz-morevna.png
66
Categories=Graphics

snap/snapcraft.yaml

Lines changed: 59 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,41 @@
11
name: opentoonz-morevna
2-
version: "1.4.0"
3-
summary: OpenToonz - Morevna Edition
2+
title: OpenToonz (Morevna Edition)
3+
summary: Free and open-source 2D animation software
44
description: |
5-
Published by DWANGO, OpenToonz is based on Toonz Studio Ghibli Version,
6-
originally developed in Italy by Digital Video, Inc., and customized
7-
by Studio Ghibli over many years of production.
5+
OpenToonz is based on software “Toonz” which was developed by Digital Video S.p.A. in Italy, customized by Studio Ghibli, and has been used for creating its works for many years.
86
9-
base: core18
7+
In March 2016 its source code was published under the terms of Modified BSD License. The open-source version is called OpenToonz and developed by international community.
108
11-
confinement: strict
9+
**Features**
10+
11+
* _Powerful Digital Drawing Tools_: Vector and bitmap drawing tools with full support for graphic tablets allow you to create artwork of any complexity.
12+
* _Scan and Cleanup_: Automatically scan and vectorize paper drawings created by animation artists. Clean and paint them in a completely color-consistent digital environment.
13+
* _Indexed Colour Palettes_: Sequence of drawings can be painted quickly with automatic tools, and palette colors can be edited at any time, updating automatically all the level drawings.
14+
* _Effects and Compositing_: Add animated special effects and composite scenes seamlessly. Blurs, lighting, keys, masks, warps and more than 100 other effects available.
15+
* _Scripting_: Automate routine tasks by using ECMA-compatible scripting engine.
16+
* _Motion Tracking_: Syncronize your animation with video footage automatically.
17+
* _Scan and Cleanup_: Automatically scan and vectorize paper drawings created by animation artists. Clean and paint them in a completely color-consistent digital environment.
18+
* _Frame-by-frame Animation_: A complete toolset for traditional frame-by-frame animation with configurable onionskin. Automatic creation of inbetween frames for vector shapes,
19+
* _Motion Tweening_: Complex movements can be defined by linking objects or using motion paths, and everything can be also animated in a 3D environment, with an automatic multiplane effect.
20+
* _Bones_: Animate your characters using bones, with IK support and mesh deformations.
21+
* _Particle Systems_: Create particles effect supporting multiple layers as particles or as control images for particles animation.
22+
23+
**Morevna Edition**
24+
25+
This edition of OpenToonz includes a special features developed by Morevna Project.
26+
27+
* _Assistant guides_: Create a drawing assistants for perfect drawing of parallel lines, perspective lines and more!
28+
* _MyPaint brushes_: Integration with MyPaint brush engine. 45 parameters to configure bitmap brush + many brush templates.
29+
* _Horizontal timeline_: Improved UI with comfortable horizontal timeline to control your animation.
30+
* _Advanced color selector_: The new color selector panel helps you choose better colors thanks to Color Schemes, Color Harmonies and more!
31+
32+
This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or officially maintained by the upstream developers.
33+
license: BSD-3-Clause
34+
version: "1.4.0"
1235
grade: stable
36+
37+
base: core18
38+
confinement: strict
1339
compression: lzo
1440

1541
architectures:
@@ -19,10 +45,14 @@ architectures:
1945
apps:
2046
opentoonz-morevna:
2147
environment:
22-
LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
23-
HOME: "$SNAP_USER_COMMON"
48+
# Fallback to XWayland if running in a Wayland session.
2449
DISABLE_WAYLAND: 1
25-
command: desktop-launch $SNAP/bin/opentoonz
50+
HOME: "$SNAP_USER_COMMON"
51+
LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
52+
command: bin/opentoonz
53+
command-chain:
54+
- bin/desktop-launch
55+
- snap/command-chain/ensure-defaults.sh
2656
plugs:
2757
- desktop
2858
- desktop-legacy
@@ -35,30 +65,26 @@ apps:
3565
- removable-media
3666
- pulseaudio
3767
tcleanup:
38-
command: tcleanup
68+
command: bin/tcleanup
3969
plugs:
4070
- home
4171
tcomposer:
42-
command: tcomposer
72+
command: bin/tcomposer
4373
plugs:
4474
- home
4575
tconverter:
46-
command: tconverter
76+
command: bin/tconverter
4777
plugs:
4878
- home
4979
tfarmcontroller:
50-
command: tfarmcontroller
80+
command: bin/tfarmcontroller
5181
plugs:
5282
- home
5383
tfarmserver:
54-
command: tfarmserver
84+
command: bin/tfarmserver
5585
plugs:
5686
- home
5787

58-
layout:
59-
/usr/bin/ffmpeg:
60-
bind-file: $SNAP/usr/bin/ffmpeg
61-
6288
parts:
6389
libmypaint:
6490
source: https://github.com/mypaint/libmypaint.git
@@ -132,6 +158,9 @@ parts:
132158
- libsuperlu5
133159
- freeglut3
134160
- libgpm2
161+
- libslang2
162+
stage:
163+
- -usr/share/X11/rgb.txt
135164
desktop-qt5:
136165
build-packages:
137166
- qtbase5-dev
@@ -154,3 +183,14 @@ parts:
154183
- libqt5svg5
155184
- locales-all
156185
- xdg-user-dirs
186+
187+
# Inject default preferences to point to ffmpeg in the snap itself
188+
default-preferences:
189+
after: [ opentoonz-morevna ]
190+
plugin: dump
191+
source: default-preferences
192+
organize:
193+
preferences.ini: share/opentoonz/stuff/profiles/layouts/settings/preferences.ini
194+
ensure-defaults.sh: snap/command-chain/ensure-defaults.sh
195+
stage-packages:
196+
- crudini

0 commit comments

Comments
 (0)