-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add icon, modify installer, update docs #2165
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
Conversation
beardypig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together @gravyboat :)
|
@gravyboat could you please add the necessary TravisCI package dependencies here Line 55 in 3004340
That's the available package whitelist for Ubuntu trusty: package names are |
Codecov Report
@@ Coverage Diff @@
## master #2165 +/- ##
==========================================
+ Coverage 51.36% 52.36% +0.99%
==========================================
Files 234 237 +3
Lines 14236 14712 +476
==========================================
+ Hits 7313 7704 +391
- Misses 6923 7008 +85 |
|
Incase my inline comment got lost:
|
|
I'll try to get around to this over the weekend, been a bit busy lately unfortunately. |
|
Hmm, seems like there is an issue with the |
|
I messed with the image conversion but it wasn't working properly so I've gone back to the simplified convert and mv. If you want to mess with it some more feel free @beardypig, but I'm not even sure if we want to use imagemagick for the svg -> ico conversion as it seems like people have had pretty mixed results. If anyone else had feedback let me know, otherwise let's get this merged in so we can do a 1.0 release. This is the last hurdle to do so I believe. |
|
It worked fine for me... must be an old version on the travis vm :( |
|
@beardypig The |
|
@gravyboat sure it compresses the pngs, but then the pngs are turned in to an ico which (in my testing) ended up the same size wether the input pngs were compressed or not :) |
|
@beardypig Fair enough! I've removed it and updated the ico creation command. |
.travis.yml
Outdated
| packages: | ||
| - nsis | ||
| - imagemagick | ||
| - optipng |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - optipng |
No need to install it now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah this is what I get for trying to crunch this in before going somewhere! Fixed.
|
LGTM. |
|
the old file Line 2 in 87a55fe
Lines 51 to 102 in 87a55fe
Line 2 in 87a55fe
Lines 666 to 717 in 87a55fe
|
|
@back-to Good catch, removed the mentions and the ico itself. @beardypig If there's nothing else let's merge this so we can proceed on to 1.0. We really need to do a new release. |
|
Can you please move the generated files into the $ ./scripts/makeinstaller.sh 2>&1 >/dev/null
$ git status
HEAD detached at refs/pull/upstream/2165
Untracked files:
(use "git add <file>..." to include in what will be committed)
icon-16.png
icon-256.png
icon-32.png
icon-48.png
win32/icon.icoAs a suggestion: diff --git a/script/makeinstaller.sh b/script/makeinstaller.sh
index b1610069..712195c4 100755
--- a/script/makeinstaller.sh
+++ b/script/makeinstaller.sh
@@ -18,9 +18,10 @@ build_dir="$(pwd)/build"
build_dir_plugins="${build_dir}/lib/streamlink/plugins"
nsis_dir="${build_dir}/nsis"
files_dir="${build_dir}/files"
+icons_dir="${files_dir}/icons"
# get the dist directory from an environment variable, but default to the build/nsis directory
dist_dir="${STREAMLINK_INSTALLER_DIST_DIR:-$nsis_dir}"
-mkdir -p "${build_dir}" "${dist_dir}" "${nsis_dir}" "${files_dir}"
+mkdir -p "${build_dir}" "${dist_dir}" "${nsis_dir}" "${files_dir}" "${icons_dir}"
echo "Building streamlink-${STREAMLINK_VERSION} package..." 1>&2
python setup.py build 1>&2
@@ -46,10 +47,9 @@ done
echo "Creating images" 1>&2
# Create images
for size in 16 32 48 256; do
- inkscape --without-gui --export-png="icon-${size}.png" -w ${size} -h ${size} icon.svg
+ inkscape --without-gui --export-png="${icons_dir}/icon-${size}.png" -w ${size} -h ${size} icon.svg
done
-convert icon-{16,32,48,256}.png icon.ico
-mv icon.ico ./win32/icon.ico
+convert "${icons_dir}"/icon-{16,32,48,256}.png "${icons_dir}/icon.ico"
echo "Building ${STREAMLINK_INSTALLER} installer..." 1>&2
@@ -59,7 +59,7 @@ cat > "${build_dir}/streamlink.cfg" <<EOF
name=Streamlink
version=${STREAMLINK_VERSION}
entry_point=streamlink_cli.main:main
-icon=../win32/icon.ico
+icon=${icons_dir}/icon.ico
[Python]
version=3.6.6I think this should be it after you've added these changes. Just built the installer and it's working fine. |
|
@bastimeyer Good suggestion, should be good to merge now. |
| apt: | ||
| packages: | ||
| - nsis | ||
| - imagemagick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think imagemagick is used anymore and it could be removed here
c0b0ac6
| packages: | ||
| - nsis | ||
| - imagemagick | ||
| - inkscape |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a test if inkscape is installed should be added in script/makeinstaller.sh
streamlink/script/makeinstaller.sh
Lines 6 to 7 in 2c6e492
| command -v makensis > /dev/null 2>&1 || { echo >&2 "makensis is required to build the installer. Aborting."; exit 1; } | |
| command -v pynsist > /dev/null 2>&1 || { echo >&2 "pynsist is required to build the installer. Aborting."; exit 1; } |
command -v inkscape > /dev/null 2>&1 || { echo >&2 "inkscape is required to build the installer. Aborting."; exit 1; }There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I also added one for imagemagick. Good idea.
|
Any other comments? Otherwise let's get this merged so we can do a 1.0 release! |
|
@bastimeyer Looks like everyone has approved it, can you merge (with a squash from the interface is fine)? I don't like to merge my own PRs. |
|
I usually don't like using the Github UI for merging PRs, because it uses a different committer name... I tried to merge it locally with the correct commit author applied and it was all fine, but it didn't accept it when I tried to push it because of the CI config of the repo and the protected master branch. Whatever... |
streamlink 1.3.1 (2020-01-27)
A small patch release that addresses the removal of MPV's legacy option syntax, also with fixes of several plugins, the addition of the --twitch-disable-reruns parameter and dropped support for Python 3.4.
streamlink 1.3.0 (2019-11-22)
A new release with plugin updates and fixes, including Twitch.tv (see #2680), which had to be delayed due to back and forth API changes.
The Twitch.tv workarounds mentioned in #2680 don't have to be applied anymore, but authenticating via --twitch-oauth-token has been disabled, regardless of the origin of the OAuth token (via --twitch-oauth-authenticate or the Twitch website). In order to not introduce breaking changes, both parameters have been kept in this release and the user name will still be logged when using an OAuth token, but receiving item drops or accessing restricted streams is not possible anymore.
Plugins for the following sites have also been added:
albavision
news.now.com
twitcasting.tv
viu.tv
vlive.tv
willax.tv
streamlink 1.2.0 (2019-08-18)
Here are the changes for this month's release
Multiple plugin fixes
Fixed single hyphen params at the beginning of --player-args (#2333)
--http-proxy will set the default value of --https-proxy to same as --http-proxy. (#2536)
DASH Streams will handle headers correctly (#2545)
the timestamp for FFMPEGMuxer streams will start with zero (#2559)
streamlink 1.1.1 (2019-04-02)
This is just a small patch release which fixes a build/deploy issue with the new special wheels for Windows on PyPI. (#2392)
streamlink 1.0.0 (2019-01-30)
The celebratory release of Streamlink 1.0.0!
A lot of hard work has gone into getting Streamlink to where it is. Not only is Streamlink used across multiple applications and platforms, but companies as well.
Streamlink started from the inaugural fork of Livestreamer on September 17th, 2016.
Since then, We've hit multiple milestones:
Over 886 PRs
Hit 3,000 commits in Streamlink
Obtaining our first sponsors as well as backers of the project
The creation of our own logo (streamlink/streamlink#1123)
Thanks to everyone who has contributed to Streamlink (and our backers)! Without you, we wouldn't be where we are today.
Without further ado, here are the changes in release 1.0.0:
We have a new icon / logo for Streamlink! (streamlink/streamlink#2165)
Updated dependencies (streamlink/streamlink#2230)
A ton of plugin updates. Have a look at this search query for all the recent updates.
You can now provide a custom key URI to override HLS streams (streamlink/streamlink#2139). For example: --hls-segment-key-uri <URI>
User agents for API communication have been updated (streamlink/streamlink#2194)
Special synonyms have been added to sort "best" and "worst" streams (streamlink/streamlink#2127). For example: streamlink --stream-sorting-excludes '>=480p' URL best,best-unfiltered
Process output will no longer show if tty is unavailable (streamlink/streamlink#2090)
We've removed BountySource in favour of our OpenCollective page. If you have any features you'd like to request, please open up an issue with the request and possibly consider backing us!
Improved terminal progress display for wide characters (streamlink/streamlink#2032)
Fixed a bug with dynamic playlists on playback (streamlink/streamlink#2096)
Fixed makeinstaller.sh (streamlink/streamlink#2098)
Old Livestreamer deprecations and API references were removed (streamlink/streamlink#1987)
Dependencies have been updated for Python (streamlink/streamlink#1975)
Newer and more common User-Agents are now used (streamlink/streamlink#1974)
DASH stream bitrates now round-up to the nearest 10, 100, 1000, etc. (streamlink/streamlink#1995)
Updated documentation on issue templates (streamlink/streamlink#1996)
URL have been added for better processing of HTML tags (streamlink/streamlink#1675)
Fixed sort and prog issue (streamlink/streamlink#1964)
Reformatted issue templates (streamlink/streamlink#1966)
Fixed crashing bug with player-continuous-http option (streamlink/streamlink#2234)
Make sure all dev dependencies (streamlink/streamlink#2235)
-r parameter has been replaced for --rtmp-rtmpdump (streamlink/streamlink#2152)
Breaking changes:
A large number of unmaintained or NSFW plugins have been removed. You can find the PR that implemented that change here: streamlink/streamlink#2003 . See our CONTRIBUTING.md documentation for plugin policy.
streamlink 1.3.1 (2020-01-27)
A small patch release that addresses the removal of MPV's legacy option syntax, also with fixes of several plugins, the addition of the --twitch-disable-reruns parameter and dropped support for Python 3.4.
streamlink 1.3.0 (2019-11-22)
A new release with plugin updates and fixes, including Twitch.tv (see #2680), which had to be delayed due to back and forth API changes.
The Twitch.tv workarounds mentioned in #2680 don't have to be applied anymore, but authenticating via --twitch-oauth-token has been disabled, regardless of the origin of the OAuth token (via --twitch-oauth-authenticate or the Twitch website). In order to not introduce breaking changes, both parameters have been kept in this release and the user name will still be logged when using an OAuth token, but receiving item drops or accessing restricted streams is not possible anymore.
Plugins for the following sites have also been added:
albavision
news.now.com
twitcasting.tv
viu.tv
vlive.tv
willax.tv
streamlink 1.2.0 (2019-08-18)
Here are the changes for this month's release
Multiple plugin fixes
Fixed single hyphen params at the beginning of --player-args (#2333)
--http-proxy will set the default value of --https-proxy to same as --http-proxy. (#2536)
DASH Streams will handle headers correctly (#2545)
the timestamp for FFMPEGMuxer streams will start with zero (#2559)
streamlink 1.1.1 (2019-04-02)
This is just a small patch release which fixes a build/deploy issue with the new special wheels for Windows on PyPI. (#2392)
streamlink 1.0.0 (2019-01-30)
The celebratory release of Streamlink 1.0.0!
A lot of hard work has gone into getting Streamlink to where it is. Not only is Streamlink used across multiple applications and platforms, but companies as well.
Streamlink started from the inaugural fork of Livestreamer on September 17th, 2016.
Since then, We've hit multiple milestones:
Over 886 PRs
Hit 3,000 commits in Streamlink
Obtaining our first sponsors as well as backers of the project
The creation of our own logo (streamlink/streamlink#1123)
Thanks to everyone who has contributed to Streamlink (and our backers)! Without you, we wouldn't be where we are today.
Without further ado, here are the changes in release 1.0.0:
We have a new icon / logo for Streamlink! (streamlink/streamlink#2165)
Updated dependencies (streamlink/streamlink#2230)
A ton of plugin updates. Have a look at this search query for all the recent updates.
You can now provide a custom key URI to override HLS streams (streamlink/streamlink#2139). For example: --hls-segment-key-uri <URI>
User agents for API communication have been updated (streamlink/streamlink#2194)
Special synonyms have been added to sort "best" and "worst" streams (streamlink/streamlink#2127). For example: streamlink --stream-sorting-excludes '>=480p' URL best,best-unfiltered
Process output will no longer show if tty is unavailable (streamlink/streamlink#2090)
We've removed BountySource in favour of our OpenCollective page. If you have any features you'd like to request, please open up an issue with the request and possibly consider backing us!
Improved terminal progress display for wide characters (streamlink/streamlink#2032)
Fixed a bug with dynamic playlists on playback (streamlink/streamlink#2096)
Fixed makeinstaller.sh (streamlink/streamlink#2098)
Old Livestreamer deprecations and API references were removed (streamlink/streamlink#1987)
Dependencies have been updated for Python (streamlink/streamlink#1975)
Newer and more common User-Agents are now used (streamlink/streamlink#1974)
DASH stream bitrates now round-up to the nearest 10, 100, 1000, etc. (streamlink/streamlink#1995)
Updated documentation on issue templates (streamlink/streamlink#1996)
URL have been added for better processing of HTML tags (streamlink/streamlink#1675)
Fixed sort and prog issue (streamlink/streamlink#1964)
Reformatted issue templates (streamlink/streamlink#1966)
Fixed crashing bug with player-continuous-http option (streamlink/streamlink#2234)
Make sure all dev dependencies (streamlink/streamlink#2235)
-r parameter has been replaced for --rtmp-rtmpdump (streamlink/streamlink#2152)
Breaking changes:
A large number of unmaintained or NSFW plugins have been removed. You can find the PR that implemented that change here: streamlink/streamlink#2003 . See our CONTRIBUTING.md documentation for plugin policy.
Fixes #1123