Allowing failure of Flatpak build
This commit is contained in:
@@ -45,14 +45,15 @@ build:
|
|||||||
- dist/*
|
- dist/*
|
||||||
|
|
||||||
build_flatpak:
|
build_flatpak:
|
||||||
image: registry.gitlab.com/sumner/sublime-music/flatpak-build:latest
|
image: registry.gitlab.com/sumner/sublime-music/flatpak-build:latest
|
||||||
stage: build
|
allow_failure: true
|
||||||
script:
|
stage: build
|
||||||
- cd flatpak
|
script:
|
||||||
- ./flatpak_build.sh
|
- cd flatpak
|
||||||
artifacts:
|
- ./flatpak_build.sh
|
||||||
paths:
|
artifacts:
|
||||||
- flatpak/sublime-music.flatpak
|
paths:
|
||||||
|
- flatpak/sublime-music.flatpak
|
||||||
|
|
||||||
deploy_pypi:
|
deploy_pypi:
|
||||||
image: python:3.6-alpine
|
image: python:3.6-alpine
|
||||||
|
@@ -1,6 +1,11 @@
|
|||||||
v0.8.9
|
v0.8.9
|
||||||
======
|
======
|
||||||
|
|
||||||
|
**Note:** this release does not have Flatpak support due to a dependency issue
|
||||||
|
that I haven't been able to crack. Please install from PyPi or the AUR. (If you
|
||||||
|
are a Flatpak expert, I would greatly appreciate help fixing the issue. See
|
||||||
|
#79.)
|
||||||
|
|
||||||
* Global Search
|
* Global Search
|
||||||
|
|
||||||
* Search for and go to Songs, Artists, Albums, and Playlists.
|
* Search for and go to Songs, Artists, Albums, and Playlists.
|
||||||
|
@@ -30,12 +30,17 @@ fi
|
|||||||
|
|
||||||
description=$(echo "$description" | rst2html5 --no-indent --template "{body}" | sed -e 's/\"/\\\"/g')
|
description=$(echo "$description" | rst2html5 --no-indent --template "{body}" | sed -e 's/\"/\\\"/g')
|
||||||
|
|
||||||
url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases"
|
# Determine whether or not to include the Flatpak build.
|
||||||
data="
|
curl \
|
||||||
{
|
--header 'Content-Type: application/json' \
|
||||||
\"name\": \"${CI_COMMIT_TAG}\",
|
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
|
||||||
\"tag_name\": \"${CI_COMMIT_TAG}\",
|
--request GET \
|
||||||
\"description\": \"${description}\",
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs?scope[]=failed" \
|
||||||
|
| grep '"name":"build_flatpak"'
|
||||||
|
|
||||||
|
assets=""
|
||||||
|
if [[ $? == 0 ]]; then
|
||||||
|
assets=",
|
||||||
\"assets\": {
|
\"assets\": {
|
||||||
\"links\": [
|
\"links\": [
|
||||||
{
|
{
|
||||||
@@ -44,6 +49,16 @@ data="
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases"
|
||||||
|
data="
|
||||||
|
{
|
||||||
|
\"name\": \"${CI_COMMIT_TAG}\",
|
||||||
|
\"tag_name\": \"${CI_COMMIT_TAG}\",
|
||||||
|
\"description\": \"${description}\"
|
||||||
|
${assets}
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
|
||||||
@@ -54,7 +69,7 @@ echo "$data"
|
|||||||
|
|
||||||
curl \
|
curl \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--header "PRIVATE-TOKEN: ${RELEASE_PUBLISH_TOKEN}" \
|
--header "JOB-TOKEN: $CI_JOB_TOKEN" \
|
||||||
--data "$data" \
|
--data "$data" \
|
||||||
--request POST \
|
--request POST \
|
||||||
$url
|
$url
|
||||||
|
@@ -351,11 +351,16 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
value,
|
value,
|
||||||
artwork_future,
|
artwork_future,
|
||||||
):
|
):
|
||||||
|
def on_search_row_button_press(btn, event):
|
||||||
|
if action_name == 'song':
|
||||||
|
goto_action_name, goto_id = 'album', value.albumId
|
||||||
|
else:
|
||||||
|
goto_action_name, goto_id = action_name, value.id
|
||||||
|
self.emit('go-to', goto_action_name, goto_id)
|
||||||
|
self.hide_search()
|
||||||
|
|
||||||
row = Gtk.Button(relief=Gtk.ReliefStyle.NONE)
|
row = Gtk.Button(relief=Gtk.ReliefStyle.NONE)
|
||||||
row.connect(
|
row.connect('button-press-event', on_search_row_button_press)
|
||||||
'button-press-event',
|
|
||||||
lambda *a: self.emit('go-to', action_name, value),
|
|
||||||
)
|
|
||||||
|
|
||||||
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
||||||
image = SpinnerImage(image_name='search-artwork', image_size=30)
|
image = SpinnerImage(image_name='search-artwork', image_size=30)
|
||||||
@@ -385,7 +390,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
song.coverArt, size=50)
|
song.coverArt, size=50)
|
||||||
self.song_results.add(
|
self.song_results.add(
|
||||||
self.create_search_result_row(
|
self.create_search_result_row(
|
||||||
label_text, 'album', song.albumId, cover_art_future))
|
label_text, 'song', song, cover_art_future))
|
||||||
|
|
||||||
self.song_results.show_all()
|
self.song_results.show_all()
|
||||||
|
|
||||||
@@ -402,7 +407,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
album.coverArt, size=50)
|
album.coverArt, size=50)
|
||||||
self.album_results.add(
|
self.album_results.add(
|
||||||
self.create_search_result_row(
|
self.create_search_result_row(
|
||||||
label_text, 'album', album.id, cover_art_future))
|
label_text, 'album', album, cover_art_future))
|
||||||
|
|
||||||
self.album_results.show_all()
|
self.album_results.show_all()
|
||||||
|
|
||||||
@@ -414,7 +419,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
cover_art_future = CacheManager.get_artist_artwork(artist)
|
cover_art_future = CacheManager.get_artist_artwork(artist)
|
||||||
self.artist_results.add(
|
self.artist_results.add(
|
||||||
self.create_search_result_row(
|
self.create_search_result_row(
|
||||||
label_text, 'artist', artist.id, cover_art_future))
|
label_text, 'artist', artist, cover_art_future))
|
||||||
|
|
||||||
self.artist_results.show_all()
|
self.artist_results.show_all()
|
||||||
|
|
||||||
@@ -427,7 +432,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
playlist.coverArt)
|
playlist.coverArt)
|
||||||
self.playlist_results.add(
|
self.playlist_results.add(
|
||||||
self.create_search_result_row(
|
self.create_search_result_row(
|
||||||
label_text, 'playlist', playlist.id, cover_art_future))
|
label_text, 'playlist', playlist, cover_art_future))
|
||||||
|
|
||||||
self.playlist_results.show_all()
|
self.playlist_results.show_all()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user