Cleaning up and update Linux data
+ Removing (no longer working) local install for linux. + Moving appstream changelog generation to scripts. + Updating debian package information.
This commit is contained in:
parent
1e32faa1d1
commit
769ad22ea6
6 changed files with 6 additions and 42 deletions
|
@ -1,11 +1,11 @@
|
|||
Package: logarithmplotter
|
||||
Source: logarithmplotter
|
||||
Version: 0.5.0
|
||||
Version: 0.6.0
|
||||
Architecture: all
|
||||
Maintainer: Ad5001 <mail@ad5001.eu>
|
||||
Depends: python3, python3-pip, python3-pyside6-essentials (>= 6.4.0), texlive-latex-base, dvipng
|
||||
Depends: python3, python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng
|
||||
|
||||
Build-Depends: debhelper (>=11~), dh-python, dpkg-dev (>= 1.16.1~), python-setuptools, python3-all-dev (>=3.6)
|
||||
Build-Depends: debhelper (>=11~), dh-python, dpkg-dev (>= 1.16.1~), python-setuptools, python3-all-dev (>=3.9)
|
||||
Section: science
|
||||
Priority: optional
|
||||
Homepage: https://apps.ad5001.eu/logarithmplotter/
|
||||
|
|
|
@ -3,6 +3,6 @@ Upstream-Name: logarithmplotter
|
|||
Upstream-Contact: Ad5001 <mail@ad5001.eu>
|
||||
|
||||
Files: *
|
||||
Copyright: 2023, Ad5001 <mail@ad5001.eu>
|
||||
Copyright: 2024, Ad5001 <mail@ad5001.eu>
|
||||
License: GPL-3.0+
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
python3, python3-pip, python3-pyside6-essentials (>= 6.4.0), texlive-latex-base, dvipng
|
||||
python3, python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng
|
||||
|
|
|
@ -1,103 +0,0 @@
|
|||
cat ../CHANGELOG.md | gawk '
|
||||
BEGIN {
|
||||
listBegan=0
|
||||
latest=1
|
||||
version=0
|
||||
}
|
||||
/^\s*##/ {
|
||||
if(!latest) {
|
||||
listBegan=0
|
||||
print " </ul>"
|
||||
print " </description>"
|
||||
print " <artifacts>"
|
||||
print " <artifact type=\"binary\" platform=\"x86_64-windows-any\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-v"version"-setup.exe</location>"
|
||||
print " </artifact>"
|
||||
print " <artifact type=\"binary\" platform=\"x86_64-macos-any\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/LogarithmPlotter-v"version"-setup.dmg</location>"
|
||||
print " </artifact>"
|
||||
print " <artifact type=\"source\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-"version".tar.gz</location>"
|
||||
print " </artifact>"
|
||||
print " </artifacts>"
|
||||
print " </release>"
|
||||
}
|
||||
latest=0
|
||||
cmd ="date \"+%Y-%m-%d\" -d \""substr($3,2,2)" "$4" "substr($5,0,4)"\""
|
||||
cmd | getline date
|
||||
version = substr($2,2,5)
|
||||
print " <release version=\""version"\" date=\""date"\">"
|
||||
print " <description>"
|
||||
print " <p><em>Changes for "$2":</em></p>"
|
||||
}
|
||||
/^\s*\*\*/ {
|
||||
if(listBegan) {
|
||||
print " </ul>"
|
||||
}
|
||||
listBegan=1
|
||||
s = ""; for (i = 1; i <= NF; i++) s = s " " $i;
|
||||
print " <p>"substr(s,4,length(s)-5)"</p>"
|
||||
print " <ul>"
|
||||
}
|
||||
/^\s*\* / {
|
||||
if(!listBegan) {
|
||||
listBegan=1
|
||||
print " <ul>"
|
||||
}
|
||||
s = ""; for (i = 2; i <= NF; i++) s = s " " $i;
|
||||
text = substr(s,2)
|
||||
# Removing links
|
||||
text = gensub(/\[([^\]]+)\]\(([^\)]+)\)/, "\\1", "g", text);
|
||||
# Fixing & in text.
|
||||
text = gensub(/&/, "&", "g", text)
|
||||
print " <li>"text"</li>"
|
||||
}
|
||||
/^\s*--/ {
|
||||
listBegan=0
|
||||
print " </ul>"
|
||||
print " </description>"
|
||||
print " <artifacts>"
|
||||
print " <artifact type=\"binary\" platform=\"x86_64-windows-any\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-v"version"-setup.exe</location>"
|
||||
print " </artifact>"
|
||||
print " <artifact type=\"binary\" platform=\"x86_64-macos-any\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/LogarithmPlotter-v"version"-setup.dmg</location>"
|
||||
print " </artifact>"
|
||||
print " <artifact type=\"source\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-"version".tar.gz</location>"
|
||||
print " </artifact>"
|
||||
print " </artifacts>"
|
||||
print " </release>"
|
||||
}
|
||||
END {
|
||||
print " </ul>"
|
||||
print " </description>"
|
||||
print " <artifacts>"
|
||||
print " <artifact type=\"binary\" platform=\"x86_64-windows-any\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-v"version"-setup.exe</location>"
|
||||
print " </artifact>"
|
||||
print " <artifact type=\"binary\" platform=\"x86_64-macos-any\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/LogarithmPlotter-v"version"-setup.dmg</location>"
|
||||
print " </artifact>"
|
||||
print " <artifact type=\"source\">"
|
||||
print " <location>https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-"version".tar.gz</location>"
|
||||
print " </artifact>"
|
||||
print " </artifacts>"
|
||||
print " </release>"
|
||||
}'
|
||||
|
||||
#'{
|
||||
#if($1 == "*") {
|
||||
# s = ""; for (i = 2; i <= NF; i++) s = s " " $i;
|
||||
# print " <li>"substr(s,2)"</li>"
|
||||
#} else if($1 == "##") {
|
||||
# cmd ="date \"+%Y-%m-%d\" -d \""substr($3,2,2)" "$4" "substr($5,0,4)"\""
|
||||
# cmd | getline date
|
||||
# print " <release version=\""substr($2,2,5)"\" date=\""date"\">"
|
||||
# print " <p>Changes for "$2":</p>"
|
||||
# print " <ul>"
|
||||
#} else if($1 == "--") {
|
||||
# print " </ul>"
|
||||
# print " </release>"
|
||||
#}
|
||||
#}'
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# AccountFree - Browse and use online services, free of account.
|
||||
# Copyright (C) 2022 Ad5001 <mail@ad5001.eu>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This script installs the desktop file & mime type for development environment, linking it directly to run.py.
|
||||
|
||||
APPROOT="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
echo "Adding desktop file..."
|
||||
sed "s+ROOTFOLDER+$APPROOT/+g" "$APPROOT/linux/logplotter.desktop" > "$APPROOT/linux/logarithmplotter-local.desktop"
|
||||
xdg-desktop-menu install "$APPROOT/linux/logarithmplotter-local.desktop"
|
||||
echo "Installing mime-type..."
|
||||
xdg-mime install "$APPROOT/linux/x-logarithm-plot.xml"
|
||||
echo "Installing icons..."
|
||||
mkdir -p ~/.local/share/icons/hicolor/scalable/mimetypes
|
||||
cp "$APPROOT/linux/application-x-logarithm-plot.svg" ~/.local/share/icons/hicolor/scalable/mimetypes/application-x-logarithm-plot.svg
|
||||
mkdir -p ~/.local/share/icons/hicolor/scalable/apps
|
||||
cp "$APPROOT/logplotter.svg" ~/.local/share/icons/hicolor/scalable/apps/logarithmplotter.svg
|
||||
# xdg-icon-resource does not work with SVG yet. See https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/790449.
|
||||
#xdg-icon-resource install --context mimetypes --novendor "$APPROOT/linux/application-x-logarithm-plot.svg" "application-x-logarithm-plot"
|
||||
#xdg-icon-resource install --context apps --novendor "$APPROOT/logplotter.svg" "logarithmplotter"
|
||||
update-mime-database ~/.local/share/mime/
|
||||
update-icon-caches ~/.local/share/icons/hicolor
|
Loading…
Add table
Add a link
Reference in a new issue