flutter_distributor configurations added

This commit is contained in:
Kingkor Roy Tirtho 2022-04-23 21:55:40 +06:00
parent aebe6d332f
commit ce6e4dc677
9 changed files with 131 additions and 1 deletions

3
.gitignore vendored
View File

@ -52,6 +52,7 @@ app.*.map.json
/aur-struct/pkg /aur-struct/pkg
/deb-struct/usr /deb-struct/usr
/linux/packaging/deb/usr
/AppDir /AppDir
/appimage-builder-cache /appimage-builder-cache
@ -70,3 +71,5 @@ installer.exe
lib/models/generated_secrets.dart lib/models/generated_secrets.dart
help.txt help.txt
secrets.json secrets.json
dist

27
distribute_options.yaml Normal file
View File

@ -0,0 +1,27 @@
output: dist/
releases:
- name: dev
jobs:
# Generating a debian binary
- name: release-dev-linux-zip
package:
platform: linux
target: zip
build_args:
dart-define:
APP_ENV: dev
- name: release-dev-linux-deb
package:
platform: linux
target: deb
build_args:
dart-define:
APP_ENV: dev
- name: release-dev-linux-appimage
package:
platform: linux
target: appimage
build_args:
dart-define:
APP_ENV: dev

View File

@ -0,0 +1,50 @@
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
version: 1
script:
- rm -rf AppDir || true
- cp -r build/linux/x64/release/bundle AppDir
- mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
- cp assets/spotube-logo.png AppDir/usr/share/icons/hicolor/64x64/apps/
AppDir:
path: ./AppDir
app_info:
id: oss.krtirtho.spotube
name: Spotube
icon: spotube-logo
version: 2.0.0
exec: spotube
exec_args: $@
apt:
arch: amd64
allow_unauthenticated: true
sources:
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute main restricted
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute universe
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-updates universe
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute multiverse
- sourceline: deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-updates multiverse
- sourceline:
deb http://bd.archive.ubuntu.com/ubuntu/ hirsute-backports main
restricted universe multiverse
- sourceline: deb http://security.ubuntu.com/ubuntu hirsute-security main restricted
- sourceline: deb http://security.ubuntu.com/ubuntu hirsute-security universe
- sourceline: deb http://security.ubuntu.com/ubuntu hirsute-security multiverse
include:
- libkeybinder-3.0-0
exclude:
- libx11-6
- libgtk-3-0
- libglib2.0-0
- libc6
files:
include: []
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
AppImage:
arch: x86_64
update-information: guess

View File

@ -0,0 +1,5 @@
appId: oss.krtirtho.spotube
icon: assets/spotube-logo.png
include:
- libkeybinder-3.0-0

View File

@ -0,0 +1,11 @@
Package: Spotube
Version: 2.0.0
Section: sound
Priority: optional
Architecture: all
Essential: no
Installed-Size: 24400
Depends: libkeybinder-3.0-0 (>= 0.3.2)
Maintainer: Kingkor Roy Tirtho <krtirtho@gmail.com>
Description: A lightweight free Spotify crossplatform-client which handles playback manually, streams music using Youtube & no Spotify premium account is needed
Homepage: https://github.com/KRTirtho/spotube

View File

@ -0,0 +1,8 @@
#!/usr/bin/env sh
echo Creating symlink
ln -s /usr/share/spotube/spotube /usr/bin
chmod +x /usr/bin/spotube
exit 0

View File

@ -0,0 +1,7 @@
#!/usr/bin/env sh
echo Removing symlink
rm /usr/bin/spotube
exit 0

View File

@ -0,0 +1,11 @@
title: Spotube
icon: assets/spotube-logo.png
contents:
- x: 448
y: 344
type: link
path: "/Applications"
- x: 192
y: 344
type: file
path: build/macos/Build/Products/Release/spotube.app

View File

@ -0,0 +1,8 @@
app_id: 80B901C8-D6FE-494E-8AF7-A2BD440E8644
publisher: KRTirtho, OSS
publisher_url: https://github.com/KRTirtho/spotube
display_name: Spotube
create_desktop_icon: true
install_dir_name: Spotube
locales:
- en