Skip to content

Commit b90557d

Browse files
authored
Merge pull request OpenShot#2134 from OpenShot/release
Release of 2.4.3 (Merge release branch into master branch)
2 parents aecaf4a + 90fdc53 commit b90557d

File tree

207 files changed

+295680
-60154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+295680
-60154
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
---
2-
name: Bug report
3-
about: Create a report to help us improve OpenShot
4-
5-
---
6-
7-
**Describe the bug**
8-
A clear and concise description of what the bug is.
9-
10-
**System Details (please complete the following information):**
11-
- Operating System / Distro: [e.g. Windows 10, Linux Mint 17.1]
12-
- OpenShot Version [e.g. 2.4.1]
13-
14-
**To Reproduce**
15-
Steps to reproduce the behavior:
16-
1. Go to '...'
17-
2. Click on '....'
18-
3. Scroll down to '....'
19-
4. See error
20-
21-
**Expected behavior**
22-
A clear and concise description of what you expected to happen.
23-
24-
**Screenshots**
25-
If applicable, add screenshots to help explain your problem.
26-
27-
**Logs**
28-
If you are experiencing a crash, please collect and attach logs of the problem.
29-
30-
**Additional context**
31-
Add any other context about the problem here.
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve OpenShot
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**System Details (please complete the following information):**
11+
- Operating System / Distro: [e.g. Windows 10, Linux Mint 17.1]
12+
- OpenShot Version [e.g. 2.4.1]
13+
14+
**To Reproduce**
15+
Steps to reproduce the behavior:
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
**Expected behavior**
22+
A clear and concise description of what you expected to happen.
23+
24+
**Screenshots**
25+
If applicable, add screenshots to help explain your problem.
26+
27+
**Logs**
28+
If you are experiencing a crash, please collect and attach logs of the problem.
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
---
2-
name: Feature request
3-
about: Suggest an idea for OpenShot
4-
5-
---
6-
7-
**Is your feature request related to a problem? Please describe.**
8-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9-
10-
**Describe the solution you'd like**
11-
A clear and concise description of what you want to happen.
12-
13-
**Describe alternatives you've considered**
14-
A clear and concise description of any alternative solutions or features you've considered.
15-
16-
**Additional context**
17-
Add any other context or screenshots about the feature request here.
1+
---
2+
name: Feature request
3+
about: Suggest an idea for OpenShot
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: I Have a Question
3+
about: Ask a question about obtaining, installing, or using OpenShot
4+
5+
---
6+
7+
<!--Give your question a descriptive title so that others will be able to understand at a glance how they can help. Then, explain in more detail under "My Question" below -->
8+
9+
**My Question:**
10+
11+
12+
13+
14+
<!-- Please replace the following text in square brackets with details about your system -->
15+
16+
**System Details**
17+
- Operating System / Distro: [e.g. Windows 10, Linux Mint 17.1]
18+
- OpenShot Version [e.g. 2.4.1]
19+
20+
**Screenshots**
21+
<!-- If applicable, add screenshots to help illustrate your question. You can include screenshots by copy/pasting them here, dragging-and-dropping into this form, or clicking below and loading images saved to your computer. All images are public, so please don't post screenshots containing personal information. -->

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
idea/*
55
doc/_build
66
**/__pycache__/
7+
build
8+
dist
9+
openshot_qt.egg-info

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ linux-builder:
2020
- python3 freeze.py build
2121
- python3 installer/build-server.py "$SLACK_TOKEN" "$S3_ACCESS_KEY" "$S3_SECRET_KEY" "$WINDOWS_KEY" "$WINDOWS_PASSWORD" "$GITHUB_USER" "$GITHUB_PASS" "False" "$CI_COMMIT_REF_NAME"
2222
when: always
23+
except:
24+
- tags
2325
tags:
2426
- linux
2527

@@ -55,6 +57,8 @@ mac-builder:
5557
- /Library/Frameworks/Python.Framework/Versions/3.6/bin/python3.6 freeze.py bdist_mac --iconfile=installer/openshot.icns --custom-info-plist=installer/Info.plist --bundle-name="OpenShot Video Editor"
5658
- /Library/Frameworks/Python.Framework/Versions/3.6/bin/python3.6 installer/build-server.py "$SLACK_TOKEN" "$S3_ACCESS_KEY" "$S3_SECRET_KEY" "$WINDOWS_KEY" "$WINDOWS_PASSWORD" "$GITHUB_USER" "$GITHUB_PASS" "False" "$CI_COMMIT_REF_NAME"
5759
when: always
60+
except:
61+
- tags
5862
tags:
5963
- mac
6064

@@ -76,6 +80,8 @@ windows-builder-x86:
7680
- editbin /LARGEADDRESSAWARE "$CI_PROJECT_DIR\build\exe.mingw-3.6\launch.exe"
7781
- python3 installer/build-server.py "$SLACK_TOKEN" "$S3_ACCESS_KEY" "$S3_SECRET_KEY" "$WINDOWS_KEY" "$WINDOWS_PASSWORD" "$GITHUB_USER" "$GITHUB_PASS" "True" "$CI_COMMIT_REF_NAME"
7882
when: always
83+
except:
84+
- tags
7985
tags:
8086
- windows
8187

@@ -96,5 +102,7 @@ windows-builder-x64:
96102
- python3 freeze.py build
97103
- python3 installer/build-server.py "$SLACK_TOKEN" "$S3_ACCESS_KEY" "$S3_SECRET_KEY" "$WINDOWS_KEY" "$WINDOWS_PASSWORD" "$GITHUB_USER" "$GITHUB_PASS" "False" "$CI_COMMIT_REF_NAME"
98104
when: always
105+
except:
106+
- tags
99107
tags:
100108
- windows

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: cpp
2+
dist: trusty
3+
4+
before_install:
5+
- sudo add-apt-repository ppa:openshot.developers/libopenshot-daily -y
6+
- sudo apt-get update -qq
7+
- sudo apt-get install gcc-4.8 xvfb tar cmake libopenshot-dev libopenshot-audio-dev libunittest++-dev swig doxygen doxypy libssl-dev python3 python3-dev python3-pip python3-pyqt5 python3-setuptools python3-openshot python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-requests python3-xdg python3-zmq qttranslations5-l10n -y
8+
- sudo apt autoremove -y
9+
- wget https://files.pythonhosted.org/packages/d0/6d/9492644452727094543575de9846af5a2b9c764f760e2d414af7c876618c/cx_Freeze-5.0.1.tar.gz
10+
- tar xf cx_Freeze-5.0.1.tar.gz
11+
- cd cx_Freeze-5.0.1; python3 setup.py build; sudo python3 setup.py install; cd ..;
12+
- pwd
13+
14+
script:
15+
- python3 freeze.py build;
16+
- xvfb-run --auto-servernum --server-num=1 --server-args "-screen 0 1920x1080x24" python3 src/tests/query_tests.py
17+
18+
notifications:
19+
email: true
20+
21+
env:
22+
global:
23+
- TRAVIS_LIBOPENSHOT=TEST
24+
- LANG="en_US.UTF-8"

AUTHORS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ developer credits.
77

88

99
Translation:
10-
See src/locale/ folders for details on translation credits. Each
10+
See src/language/ folder for details on translation credits. Each
1111
translation contains a "translator-credits" key containing the
1212
details of each translator that contributed to that language.
1313

@@ -35,4 +35,4 @@ https://github.com/OpenShot/openshot-qt/graphs/contributors
3535
https://github.com/OpenShot/libopenshot/graphs/contributors
3636
https://github.com/OpenShot/libopenshot-audio/graphs/contributors
3737
http://openshot.org/developers
38-
https://launchpad.net/~openshot.developers
38+
https://launchpad.net/~openshot.developers

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ copies all the code files to the /site-packages/ folder.
7373
Here is a tutorial of the current development features:
7474

7575
#### Do you have a help manual?
76-
1) Yes, go to http://www.openshotusers.com/help/en/
76+
1) Yes, read it online at https://www.openshot.org/user-guide/
7777

7878
#### How do I add media to my project?
7979
1) Drag and drop videos or music files from gnome into the "Project Files" tree.

freeze.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ def find_files(directory, patterns):
125125
build_exe_options = {}
126126

127127
# Copy QT translations to local folder (to be packaged)
128-
qt_local_path = os.path.join(PATH, "openshot_qt", "locale", "QT")
128+
qt_local_path = os.path.join(PATH, "openshot_qt", "language")
129129
qt_system_path = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
130130
if os.path.exists(qt_system_path):
131131
# Create local QT translation folder (if needed)
132132
if not os.path.exists(qt_local_path):
133133
os.mkdir(qt_local_path)
134134
# Loop through QT translation files and copy them
135135
for file in os.listdir(qt_system_path):
136-
# Copy QT locale files
137-
if file.startswith("qt_") and file.endswith(".qm"):
136+
# Copy QT translation files
137+
if (file.startswith("qt_") or file.startswith("qtbase_")) and file.endswith(".qm"):
138138
shutil.copyfile(os.path.join(qt_system_path, file), os.path.join(qt_local_path, file))
139139

140140
if sys.platform == "win32":
@@ -214,7 +214,7 @@ def find_files(directory, patterns):
214214
if (libpath \
215215
and not libpath.startswith("/lib") \
216216
and not "libnvidia-glcore.so" in libpath \
217-
and not libpath_file in ["libstdc++.so.6", "libGL.so.1", "libxcb.so.1", "libX11.so.6", "libasound.so.2", "libgcc_s.so.1 ", "libICE.so.6", "libp11-kit.so.0", "libSM.so.6", "libgobject-2.0.so.0"]) \
217+
and not libpath_file in ["libstdc++.so.6", "libGL.so.1", "libxcb.so.1", "libX11.so.6", "libasound.so.2", "libgcc_s.so.1 ", "libICE.so.6", "libp11-kit.so.0", "libSM.so.6", "libgobject-2.0.so.0", "libdrm.so.2"]) \
218218
or libpath_file in ["libgcrypt.so.11", "libQt5DBus.so.5", "libpng12.so.0", "libbz2.so.1.0", "libqxcb.so"]:
219219

220220
# Ignore paths that start with /lib
@@ -272,4 +272,4 @@ def find_files(directory, patterns):
272272

273273
# Remove temporary folder (if SRC folder present)
274274
if os.path.exists(os.path.join(PATH, "src")):
275-
rmtree(os.path.join(PATH, "openshot_qt"), True)
275+
rmtree(os.path.join(PATH, "openshot_qt"), True)

installer/analyze_errors.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
"""Analyze archived/exported error messages and aggregate data"""
22
import re
3+
import sys
34
import os
45
import json
5-
import urllib.request
6+
from urllib.request import Request, urlopen
67
from collections import OrderedDict
78

9+
# Read in slack token
10+
if len(sys.argv) >= 2:
11+
slack_token = sys.argv[1]
812

913
# Compile error message matching regex (file path, line number)
1014
error_regex = re.compile(r"([\\|/].*.py).*line (.*),")
@@ -13,10 +17,10 @@
1317
openshot_version_regex = re.compile(r"\((.*)\)")
1418

1519
# Message folder with exported archived error messages
16-
messages_folder = "/home/jonathan/Downloads/OpenShot Project Slack export Jan 21 2018/library-exceptions"
20+
messages_folder = "/home/jonathan/Downloads/OpenShot Project Slack export Jul 9 2018 - Aug 8 2018/python-exceptions"
1721
cache_path = local_path = os.path.join(messages_folder, "cache")
18-
version_starts_with = "2.4.1"
19-
scan_cache = True
22+
version_starts_with = "2.4.2"
23+
scan_cache = False
2024

2125
# Create cache folder (if needed)
2226
if not os.path.exists(cache_path):
@@ -29,9 +33,9 @@
2933
if os.path.isfile(message_path):
3034
with open(message_path, "r") as f:
3135
for message in json.load(f):
32-
if message.get("file"):
33-
file_title = message.get("file").get("title")
34-
file_id = message.get("file").get("id")
36+
for file_details in message.get("files", []):
37+
file_title = file_details.get("title")
38+
file_id = file_details.get("id")
3539

3640
# Parse openshot version (if any)
3741
version = "Unknown"
@@ -47,9 +51,10 @@
4751
# Cache attachment (if needed)
4852
local_path = os.path.join(cache_path, "%s-%s" % (version, file_id))
4953
if not os.path.exists(local_path):
50-
attachment_url = message.get("file").get("url_private_download")
51-
response = urllib.request.urlopen(attachment_url)
52-
data = response.read()
54+
attachment_url = file_details.get("url_private_download").split("?")[0]
55+
q = Request(attachment_url)
56+
q.add_header('Authorization', slack_token)
57+
data = urlopen(q).read()
5358

5459
with open(local_path, "wb") as f1:
5560
print("Writing local file: %s-%s" % (version, file_id))

installer/build-mac-dmg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mv "$OS_PATH/MacOS/blender" "$OS_PATH/Resources/blender"; ln -s "../Resources/bl
3131
mv "$OS_PATH/MacOS/classes" "$OS_PATH/Resources/classes"; ln -s "../Resources/classes" "$OS_PATH/MacOS/classes";
3232
mv "$OS_PATH/MacOS/effects" "$OS_PATH/Resources/effects"; ln -s "../Resources/effects" "$OS_PATH/MacOS/effects";
3333
mv "$OS_PATH/MacOS/images" "$OS_PATH/Resources/images"; ln -s "../Resources/images" "$OS_PATH/MacOS/images";
34-
mv "$OS_PATH/MacOS/locale" "$OS_PATH/Resources/locale"; ln -s "../Resources/locale" "$OS_PATH/MacOS/locale";
34+
mv "$OS_PATH/MacOS/language" "$OS_PATH/Resources/language"; ln -s "../Resources/language" "$OS_PATH/MacOS/language";
3535
mv "$OS_PATH/MacOS/presets" "$OS_PATH/Resources/presets"; ln -s "../Resources/presets" "$OS_PATH/MacOS/presets";
3636
mv "$OS_PATH/MacOS/profiles" "$OS_PATH/Resources/profiles"; ln -s "../Resources/profiles" "$OS_PATH/MacOS/profiles";
3737
mv "$OS_PATH/MacOS/settings" "$OS_PATH/Resources/settings"; ln -s "../Resources/settings" "$OS_PATH/MacOS/settings";

installer/build-server.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import subprocess
4040
import sys
4141
import tinys3
42+
import time
4243
import traceback
4344
from github3 import login
4445

@@ -243,13 +244,14 @@ def parse_version_info(version_path):
243244
# Add num of commits from libopenshot and libopenshot-audio (for naming purposes)
244245
# If not an official release
245246
if git_branch_name == "develop":
246-
# Make filename more descriptive for daily builds
247+
# Make filename more descriptive for daily builds (add time epoch)
248+
openshot_qt_git_desc = "OpenShot-v%s-%d" % (info.VERSION, int(time.time()))
247249
openshot_qt_git_desc = "%s-%s-%s" % (openshot_qt_git_desc, version_info.get('libopenshot').get('CI_COMMIT_SHA')[:8], version_info.get('libopenshot-audio').get('CI_COMMIT_SHA')[:8])
248250
# Get daily git_release object
249251
github_release = get_release(repo, "daily")
250252
elif git_branch_name == "release":
251253
# Get daily git_release object
252-
openshot_qt_git_desc = "OpenShot-v%s" % info.VERSION
254+
openshot_qt_git_desc = "OpenShot-v%s-release-candidate-%d" % (info.VERSION, int(time.time()))
253255
github_release = get_release(repo, "daily")
254256
elif git_branch_name == "master":
255257
# Get official version release (i.e. v2.1.0, v2.x.x)
@@ -261,15 +263,13 @@ def parse_version_info(version_path):
261263
github_release = repo.create_release(git_description, target_commitish="master", prerelease=True)
262264
else:
263265
# Make filename more descriptive for daily builds
266+
openshot_qt_git_desc = "OpenShot-v%s-%d" % (info.VERSION, int(time.time()))
264267
openshot_qt_git_desc = "%s-%s-%s" % (openshot_qt_git_desc, version_info.get('libopenshot').get('CI_COMMIT_SHA')[:8], version_info.get('libopenshot-audio').get('CI_COMMIT_SHA')[:8])
265268
# Get daily git_release object
266269
github_release = get_release(repo, "daily")
267270
needs_upload = False
268271

269-
# Output git desription
270-
output("git description of openshot-qt-git: %s" % openshot_qt_git_desc)
271-
272-
# Output git desription
272+
# Output git description
273273
output("git description of openshot-qt-git: %s" % openshot_qt_git_desc)
274274

275275
# Detect version number from git description

installer/launch-linux.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ LD_LIBRARY_PATH="."
55

66
# Set some environment variables for ImageMagick and Qt5
77
export QT_PLUGIN_PATH="."
8-
export QT_DEBUG_PLUGINS="1"
98

109
# Launch application
1110
HERE="$(dirname "$(readlink -f "${0}")")"
12-
exec "${HERE}"/launch "$@"
11+
exec "${HERE}"/launch "$@"

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,15 @@
6565
os_files = [
6666
# XDG application description
6767
('share/applications', ['xdg/openshot-qt.desktop']),
68-
# XDG application icon
68+
# AppStream metadata
69+
('share/metainfo', ['xdg/openshot-qt.appdata.xml']),
70+
# Debian menu system application icon
6971
('share/pixmaps', ['xdg/openshot-qt.svg']),
72+
# XDG Freedesktop icon paths
73+
('share/icons/hicolor/scalable/apps', ['xdg/openshot-qt.svg']),
74+
('share/icons/hicolor/64/apps', ['xdg/icon/64/openshot-qt.png']),
75+
('share/icons/hicolor/256/apps', ['xdg/icon/256/openshot-qt.png']),
76+
('share/icons/hicolor/512/apps', ['xdg/icon/512/openshot-qt.png']),
7077
# XDG desktop mime types cache
7178
('share/mime/packages', ['xdg/openshot-qt.xml']),
7279
# launcher (mime.types)

0 commit comments

Comments
 (0)