Compare commits
125 Commits
master
...
v4.5-branc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d8d7c2a0f | ||
|
|
93e529f371 | ||
|
|
06843f1155 | ||
|
|
a5611c1d28 | ||
|
|
6a6f824caa | ||
|
|
5916a4e37b | ||
|
|
bd20b8c9a2 | ||
|
|
51b7de7812 | ||
|
|
f1a24f08fb | ||
|
|
f3abedd588 | ||
|
|
4393f59250 | ||
|
|
46fa803259 | ||
|
|
403a7b959c | ||
|
|
97a26166e7 | ||
|
|
21ad9ac62c | ||
|
|
4ef2ef1540 | ||
|
|
573489bebc | ||
|
|
14aafaa67d | ||
|
|
6df8752d7d | ||
|
|
9d26f40279 | ||
|
|
6cc6c04521 | ||
|
|
f7ec0b3dd0 | ||
|
|
d6f6a8c7f8 | ||
|
|
9fe0cbaae4 | ||
|
|
979dee2de7 | ||
|
|
696541e7b0 | ||
|
|
c52bbc660c | ||
|
|
3ce15d236b | ||
|
|
40af185902 | ||
|
|
e56e522ac5 | ||
|
|
410ea40229 | ||
|
|
a1fb31a2d8 | ||
|
|
a26c1c6df1 | ||
|
|
ed8e665242 | ||
|
|
15d07a879e | ||
|
|
b3b43e0140 | ||
|
|
7e15c2a7ad | ||
|
|
37e08d5e25 | ||
|
|
d0754138a4 | ||
|
|
669e2bf9fe | ||
|
|
fe8c2ba6ce | ||
|
|
e9caf75db0 | ||
|
|
916ed01830 | ||
|
|
3ba21027b9 | ||
|
|
90bd1b0af7 | ||
|
|
fd10342b24 | ||
|
|
c332bf2cfa | ||
|
|
e167506bdb | ||
|
|
0d080f3249 | ||
|
|
550f07da8b | ||
|
|
3f4d0e317d | ||
|
|
ea281b66a8 | ||
|
|
e15f13d861 | ||
|
|
ab1dc3ce38 | ||
|
|
122088c891 | ||
|
|
1bea93d6ee | ||
|
|
777ee8a5cd | ||
|
|
e90b409a14 | ||
|
|
2639281354 | ||
|
|
2368f3371b | ||
|
|
126ce41b5c | ||
|
|
2163ae026f | ||
|
|
b1c923cd59 | ||
|
|
563ff6bdc4 | ||
|
|
55fbddb756 | ||
|
|
d5f2bb2353 | ||
|
|
d38f50d128 | ||
|
|
875a9035fb | ||
|
|
7e1ba8e925 | ||
|
|
e15ec99dfe | ||
|
|
a5dde4c34a | ||
|
|
43ec76283b | ||
|
|
3c83b2218b | ||
|
|
9bd9850688 | ||
|
|
e8afb7120c | ||
|
|
7ae578ae6a | ||
|
|
c13da59ecc | ||
|
|
19caca1d36 | ||
|
|
57bb04a529 | ||
|
|
cf095489aa | ||
|
|
2a4ce01322 | ||
|
|
a01e4fefb4 | ||
|
|
b2eee9db6b | ||
|
|
403d6dcfb0 | ||
|
|
b73f56bc43 | ||
|
|
09cec219f7 | ||
|
|
cd44aabb5f | ||
|
|
5229c507cb | ||
|
|
4052fea817 | ||
|
|
f3c8ae2bf8 | ||
|
|
95020f5989 | ||
|
|
ca3b1bb6ef | ||
|
|
efc7117c21 | ||
|
|
9fe1e0fb34 | ||
|
|
06e704d98a | ||
|
|
f9d5fe56b3 | ||
|
|
e1768b4771 | ||
|
|
76c97f2e57 | ||
|
|
f577967629 | ||
|
|
d6b7ea5f7f | ||
|
|
e4c7c6e8eb | ||
|
|
27ea079928 | ||
|
|
3029bc872c | ||
|
|
16ce14a29e | ||
|
|
9c26da3e29 | ||
|
|
ea9303ff3c | ||
|
|
0a65fe500b | ||
|
|
965b67847f | ||
|
|
cd81f37200 | ||
|
|
d48a677259 | ||
|
|
8daf6128f6 | ||
|
|
731e964932 | ||
|
|
0c2df219ef | ||
|
|
f29cf77b4e | ||
|
|
31cdc9320e | ||
|
|
6b9d4669d1 | ||
|
|
d20f0662b4 | ||
|
|
00c1405535 | ||
|
|
8a43e07408 | ||
|
|
d69c9e08af | ||
|
|
2bf84e6a5e | ||
|
|
9a3532b0cd | ||
|
|
ffc8e0a661 | ||
|
|
3555361e44 | ||
|
|
77e259080f |
18
.DEREK.yml
@ -1,18 +0,0 @@
|
||||
maintainers:
|
||||
- dirkhh
|
||||
- neolit123
|
||||
- atdotde
|
||||
- torvalds
|
||||
- glance-
|
||||
- mturkia
|
||||
- janmulder
|
||||
- tcanabrava
|
||||
- bstoeger
|
||||
- sfuchs79
|
||||
- janiversen
|
||||
- jbygdell
|
||||
|
||||
features:
|
||||
- dco_check
|
||||
- comments
|
||||
- pr_description_required
|
||||
@ -10,7 +10,7 @@ ColumnLimit: 0
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||||
ConstructorInitializerIndentWidth: 8
|
||||
ContinuationIndentWidth: 8
|
||||
ForEachMacros: [ 'for_each_dc', 'for_each_relevant_dc', 'for_each_dive', 'for_each_line' ]
|
||||
ForEachMacros: [ 'foreach', 'for_each_dc', 'for_each_dive', 'for_each_line', 'Q_FOREACH', 'BOOST_FOREACH' ]
|
||||
IndentFunctionDeclarationAfterType: false #personal taste, good for long methods
|
||||
IndentWidth: 8
|
||||
MaxEmptyLinesToKeep: 2
|
||||
|
||||
6
.gitattributes
vendored
@ -1,8 +1,2 @@
|
||||
.gitignore export-ignore
|
||||
.gitattributes export-ignore
|
||||
Documentation/*.html.git text=auto
|
||||
theme/jqplot.canvasAxisTickRenderer.min.js binary
|
||||
theme/jqplot.highlighter.min.js binary
|
||||
theme/jquery.jqplot.min.js binary
|
||||
theme/jquery.min.js binary
|
||||
CHANGELOG.md -text merge=union
|
||||
|
||||
2
.github/FUNDING.yml
vendored
@ -1,2 +0,0 @@
|
||||
github: subsurface
|
||||
ko_fi: dirkhh
|
||||
39
.github/ISSUE_TEMPLATE.md
vendored
@ -1,39 +0,0 @@
|
||||
<!-- Lines like this one are comments and will not be shown in the final output. -->
|
||||
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
|
||||
|
||||
### Describe the issue:
|
||||
<!-- Replace [ ] with [x] to select options. -->
|
||||
- [ ] Bug
|
||||
- [ ] Change request
|
||||
- [ ] New feature request
|
||||
- [ ] Discussion request
|
||||
|
||||
### Issue long description:
|
||||
<!-- Describe the issue in detail. -->
|
||||
|
||||
### Operating system:
|
||||
<!-- What OS are you running, including OS version and the language that you are running in -->
|
||||
<!-- What device are you using? -->
|
||||
<!-- Only answer this question if you have tried: Does the same happen on another OS? -->
|
||||
|
||||
### Subsurface version:
|
||||
<!-- What version of Subsurface are you running? -->
|
||||
<!-- Does the same happen on another Subsurface version? -->
|
||||
<!-- Are you using official release, test build, or compiled yourself? -->
|
||||
<!-- Provide Git hash if your are building Subsurface yourself. -->
|
||||
|
||||
### Steps to reproduce:
|
||||
<!-- Provide reproduction steps separated with new lines - 1), 2), 3)... -->
|
||||
|
||||
### Current behavior:
|
||||
<!-- What is the current behavior? -->
|
||||
|
||||
### Expected behavior:
|
||||
<!-- What is the expected behavior? -->
|
||||
|
||||
### Additional information:
|
||||
<!-- If a simple dive log file can reproduce the issue, please attach that to the report. -->
|
||||
<!-- With dive computer download issues consider adding Subsurface log file and Subsurface dumpfile to the report. -->
|
||||
|
||||
### Mentions:
|
||||
<!-- Mention users that you want to review your issue with @<user-name>. Leave empty if not sure. -->
|
||||
39
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,39 +0,0 @@
|
||||
<!-- Lines like this one are comments and will not be shown in the final output. -->
|
||||
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
|
||||
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
|
||||
|
||||
### Describe the pull request:
|
||||
<!-- Replace [ ] with [x] to select options. -->
|
||||
- [ ] Bug fix
|
||||
- [ ] Functional change
|
||||
- [ ] New feature
|
||||
- [ ] Code cleanup
|
||||
- [ ] Build system change
|
||||
- [ ] Documentation change
|
||||
- [ ] Language translation
|
||||
|
||||
### Pull request long description:
|
||||
<!-- Describe your pull request in detail. -->
|
||||
|
||||
### Changes made:
|
||||
<!-- Enumerate the changes with 1), 2), 3) etc. -->
|
||||
<!-- Ensure the test cases are updated if needed. -->
|
||||
|
||||
### Related issues:
|
||||
<!-- Reference issues with #<issue-num>. -->
|
||||
<!-- Write "Fixes #<issue-num" to notify Github that this PR fixes an issue. -->
|
||||
|
||||
### Additional information:
|
||||
<!-- Include sample dive log or other relevant information to allow testing the change where feasible. -->
|
||||
|
||||
### Release note:
|
||||
<!-- Describe if this change needs a release note present in CHANGELOG.md. -->
|
||||
<!-- Also, please make sure to add the release note on top of the file CHANGELOG.md. -->
|
||||
|
||||
### Documentation change:
|
||||
<!-- If this PR makes changes to user functionality, then the documentation has to be updated too. -->
|
||||
<!-- Please, briefly outline here what has changed in terms of the user experience (UX). -->
|
||||
<!-- If UX changes have been made, a maintainer should apply the 'needs-documentation-change' label. -->
|
||||
|
||||
### Mentions:
|
||||
<!-- Mention users that you want to review your pull request with @<user-name>. Leave empty if not sure. -->
|
||||
56
.github/actions/manage-version/action.yml
vendored
@ -1,56 +0,0 @@
|
||||
name: Manage the Subsurface CICD versioning
|
||||
|
||||
inputs:
|
||||
no-increment:
|
||||
description: 'Only get the current version, do not increment it even for push events (Caution: not actually a boolean)'
|
||||
default: false
|
||||
nightly-builds-secret:
|
||||
description: The secret to access the nightly builds repository
|
||||
default: ''
|
||||
|
||||
outputs:
|
||||
version:
|
||||
description: The long form version number
|
||||
value: ${{ steps.version_number.outputs.version }}
|
||||
buildnr:
|
||||
description: The build number
|
||||
value: ${{ steps.version_number.outputs.buildnr }}
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: atomically create or retrieve the build number and assemble release notes for a push (i.e. merging of a pull request)
|
||||
if: github.event_name == 'push' && inputs.no-increment == 'false'
|
||||
env:
|
||||
NIGHTLY_BUILDS_SECRET: ${{ inputs.nightly-builds-secret }}
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -z "$NIGHTLY_BUILDS_SECRET" ]; then
|
||||
echo "Need to supply the secret for the nightly-builds repository to increment the version number, aborting."
|
||||
exit 1
|
||||
fi
|
||||
scripts/get-atomic-buildnr.sh $GITHUB_SHA $NIGHTLY_BUILDS_SECRET "CICD-release"
|
||||
|
||||
- name: retrieve the current version number in all other cases
|
||||
if: github.event_name != 'push' || inputs.no-increment != 'false'
|
||||
env:
|
||||
PULL_REQUEST_BRANCH: ${{ github.event.pull_request.head.ref }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo "pull-request-$PULL_REQUEST_BRANCH" > latest-subsurface-buildnumber-extension
|
||||
|
||||
- name: store version number for the build
|
||||
id: version_number
|
||||
env:
|
||||
PULL_REQUEST_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
# For a pull request we need the information from the pull request branch
|
||||
# and not from the merge branch on the pull request
|
||||
git checkout $PULL_REQUEST_HEAD_SHA
|
||||
version=$(scripts/get-version.sh)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
buildnr=$(scripts/get-version.sh 1)
|
||||
echo "buildnr=$buildnr" >> $GITHUB_OUTPUT
|
||||
git checkout $GITHUB_SHA
|
||||
37
.github/workflows/android-dockerimage.yml
vendored
@ -1,37 +0,0 @@
|
||||
name: Android Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- scripts/docker/android-build-container/**
|
||||
- .github/workflows/android-dockerimage.yml
|
||||
|
||||
jobs:
|
||||
android-build-container:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
VERSION: ${{ '5.15.2' }} # the version numbers here is based on the Qt version, the third digit is the rev of the docker image
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build the name for the docker image
|
||||
id: build_name
|
||||
run: |
|
||||
v=$VERSION
|
||||
b=$GITHUB_REF # -BRANCH suffix, unless the branch is master
|
||||
b=${b/refs\/heads\//}
|
||||
b=${b,,} # the name needs to be all lower case
|
||||
if [ $b = "master" ] ; then b="" ; else b="-$b" ; fi
|
||||
echo "NAME=$GITHUB_REPOSITORY_OWNER/android-build${b}:${v}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and Publish Linux Docker image to Dockerhub
|
||||
uses: elgohr/Publish-Docker-Github-Action@v5
|
||||
with:
|
||||
name: ${{ steps.build_name.outputs.NAME }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
dockerfile: 'Dockerfile'
|
||||
workdir: './scripts/docker/android-build-container/'
|
||||
91
.github/workflows/android.yml
vendored
@ -1,91 +0,0 @@
|
||||
name: Android
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
KEYSTORE_FILE: ${{ github.workspace }}/../subsurface.keystore
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker://subsurface/android-build:5.15.2
|
||||
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: set up the keystore
|
||||
if: github.event_name == 'push'
|
||||
env:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
run: |
|
||||
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > $KEYSTORE_FILE
|
||||
|
||||
- name: run build
|
||||
id: build
|
||||
env:
|
||||
KEYSTORE_PASSWORD: pass:${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||
KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
||||
BUILDNR: ${{ steps.version_number.outputs.buildnr }}
|
||||
run: |
|
||||
# this is rather awkward, but it allows us to use the preinstalled
|
||||
# Android and Qt versions with relative paths
|
||||
cd ..
|
||||
ln -s /android/5.15.* .
|
||||
ln -s /android/build-tools .
|
||||
ln -s /android/cmdline-tools .
|
||||
ln -s /android/ndk .
|
||||
ln -s /android/platform-tools .
|
||||
ln -s /android/platforms .
|
||||
ln -s /android/tools .
|
||||
git config --global user.email "ci@subsurface-divelog.org"
|
||||
git config --global user.name "Subsurface CI"
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
||||
# get the build number via curl so this works both for a pull request as well as a push
|
||||
export OUTPUT_DIR="$GITHUB_WORKSPACE"
|
||||
bash -x ./subsurface/packaging/android/qmake-build.sh -buildnr $BUILDNR
|
||||
|
||||
- name: delete the keystore
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
rm $KEYSTORE_FILE
|
||||
|
||||
- name: publish pull request artifacts
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Subsurface-Android-${{ steps.version_number.outputs.version }}
|
||||
path: Subsurface-mobile-*.apk
|
||||
|
||||
# only publish a 'release' on push events (those include merging a PR)
|
||||
- name: upload binaries
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
repository: ${{ github.repository_owner }}/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
Subsurface-mobile-${{ steps.version_number.outputs.version }}.apk
|
||||
24
.github/workflows/artifact-links.yml
vendored
@ -1,24 +0,0 @@
|
||||
name: Add artifact links to pull request
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Ubuntu 16.04 / Qt 5.15-- for AppImage", "Mac", "Windows", "Android", "iOS"]
|
||||
types: [completed]
|
||||
|
||||
jobs:
|
||||
artifacts-url-comments:
|
||||
name: Add artifact links to PR and issues
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Add artifact links to PR and issues
|
||||
if: github.event.workflow_run.event == 'pull_request'
|
||||
uses: tonyhallett/artifacts-url-comments@v1.1.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
prefix: "**Artifacts:**"
|
||||
suffix: "_**WARNING:** Use at your own risk._"
|
||||
format: name
|
||||
addTo: pull
|
||||
errorNoArtifacts: false
|
||||
69
.github/workflows/codeql-analysis.yml
vendored
@ -1,69 +0,0 @@
|
||||
# Modified from the sample workflow suggested by GitHub/Semmle
|
||||
#
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
# once this works, this should be
|
||||
# branches: [master]
|
||||
branches: [master, codeQL]
|
||||
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [master]
|
||||
|
||||
schedule:
|
||||
- cron: '0 2 * * 6'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Override automatic language detection by changing the below list
|
||||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
|
||||
language: ['c-cpp', 'javascript-typescript']
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: get container ready for build
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y -q \
|
||||
autoconf automake cmake g++ git libcrypto++-dev libcurl4-gnutls-dev \
|
||||
libgit2-dev libqt5qml5 libqt5quick5 libqt5svg5-dev \
|
||||
libqt5webkit5-dev libsqlite3-dev libssh2-1-dev libssl-dev libssl-dev \
|
||||
libtool libusb-1.0-0-dev libxml2-dev libxslt1-dev libzip-dev make \
|
||||
pkg-config qml-module-qtlocation qml-module-qtpositioning \
|
||||
qml-module-qtquick2 qt5-qmake qtchooser qtconnectivity5-dev \
|
||||
qtdeclarative5-dev qtdeclarative5-private-dev qtlocation5-dev \
|
||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||
qtquickcontrols2-5-dev xvfb libbluetooth-dev libmtp-dev
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd ..
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
||||
bash -e -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
56
.github/workflows/coverity-scan.yml
vendored
@ -1,56 +0,0 @@
|
||||
name: Coverity Scan Linux Qt 5.9
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 18 * * *' # Daily at 18:00 UTC
|
||||
|
||||
jobs:
|
||||
CoverityScanBuildOnUbuntu:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ubuntu:22.04
|
||||
|
||||
steps:
|
||||
- name: add build dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
|
||||
wget curl \
|
||||
autoconf automake cmake g++ git libcrypto++-dev libcurl4-gnutls-dev \
|
||||
libgit2-dev libqt5qml5 libqt5quick5 libqt5svg5-dev \
|
||||
libqt5webkit5-dev libsqlite3-dev libssh2-1-dev libssl-dev libssl-dev \
|
||||
libtool libusb-1.0-0-dev libxml2-dev libxslt1-dev libzip-dev make \
|
||||
pkg-config qml-module-qtlocation qml-module-qtpositioning \
|
||||
qml-module-qtquick2 qt5-qmake qtchooser qtconnectivity5-dev \
|
||||
qtdeclarative5-dev qtdeclarative5-private-dev qtlocation5-dev \
|
||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||
qtquickcontrols2-5-dev libbluetooth-dev libmtp-dev
|
||||
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: configure environment
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
||||
|
||||
- name: get the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
no-increment: true
|
||||
|
||||
- name: run coverity scan
|
||||
uses: vapier/coverity-scan-action@v1
|
||||
with:
|
||||
project: Subsurface-divelog/subsurface
|
||||
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||
email: glance@acc.umu.se
|
||||
command: subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||
working-directory: ${{ github.workspace }}/..
|
||||
version: ${{ steps.version_number.outputs.version }}
|
||||
description: Automatic scan on github actions
|
||||
36
.github/workflows/documentation.yml
vendored
@ -1,36 +0,0 @@
|
||||
name: Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- Documentation
|
||||
- .github/workflows/documentation.yml
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- Documentation
|
||||
- .github/workflows/documentation.yml
|
||||
|
||||
jobs:
|
||||
documentation:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Install Packages
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install asciidoc docbook-xml w3m
|
||||
|
||||
- name: Checkout Sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Process the Documentation
|
||||
id: process_documentation
|
||||
working-directory: Documentation
|
||||
run: make
|
||||
59
.github/workflows/fedora-copr-build.yml
vendored
@ -1,59 +0,0 @@
|
||||
name: Fedora Copr Build
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
- current
|
||||
|
||||
jobs:
|
||||
setup-build:
|
||||
name: Submit build to Fedora COPR
|
||||
# this seems backwards, but we want to run under Fedora, but Github doesn' support that
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: fedora:latest
|
||||
|
||||
steps:
|
||||
- name: Setup build dependencies in the Fedora container
|
||||
run: |
|
||||
dnf -y install @development-tools @rpm-development-tools
|
||||
dnf -y install copr-cli make
|
||||
|
||||
- name: Check out sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: setup git
|
||||
run: |
|
||||
git config --global --add safe.directory /__w/subsurface/subsurface
|
||||
git config --global --add safe.directory /__w/subsurface/subsurface/libdivecomputer
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: Setup API token for copr-cli
|
||||
env:
|
||||
API_TOKEN: ${{ secrets.COPR_TOKEN }}
|
||||
API_LOGIN: ${{ secrets.COPR_LOGIN }}
|
||||
run: |
|
||||
mkdir -p "$HOME/.config"
|
||||
cp packaging/copr/config.copr "$HOME/.config/copr"
|
||||
sed -i "s/API_TOKEN/$API_TOKEN/;s/API_LOGIN/$API_LOGIN/" "$HOME/.config/copr"
|
||||
|
||||
- name: Checkout googlemaps
|
||||
run: |
|
||||
cd ..
|
||||
git clone https://github.com/subsurface/googlemaps
|
||||
|
||||
- name: run the copr build script
|
||||
run: |
|
||||
cd ..
|
||||
bash -x subsurface/packaging/copr/make-package.sh $GITHUB_REF_NAME
|
||||
|
||||
61
.github/workflows/ios.yml
vendored
@ -1,61 +0,0 @@
|
||||
name: iOS
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macOS-11
|
||||
steps:
|
||||
- name: switch to Xcode 11
|
||||
run: sudo xcode-select -s "/Applications/Xcode_11.7.app"
|
||||
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: setup Homebrew
|
||||
run: brew install autoconf automake libtool pkg-config
|
||||
|
||||
- name: checkout Qt resources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: subsurface/qt-ios
|
||||
ref: main
|
||||
path: qt-ios
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: build Subsurface-mobile for iOS
|
||||
env:
|
||||
VERSION: ${{ steps.version_number.outputs.version }}
|
||||
run: |
|
||||
cd ..
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
||||
export IOS_QT=$GITHUB_WORKSPACE/qt-ios
|
||||
echo "build for simulator"
|
||||
bash -x $GITHUB_WORKSPACE/packaging/ios/build.sh -simulator
|
||||
# We need this in order to be able to access the file and publish it
|
||||
mv build-Subsurface-mobile-Qt_5_14_1_for_iOS-Release/Release-iphonesimulator/Subsurface-mobile.app $GITHUB_WORKSPACE/Subsurface-mobile-$VERSION.app
|
||||
|
||||
- name: publish artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Subsurface-iOS-${{ steps.version_number.outputs.version }}
|
||||
path: Subsurface-mobile-*.app
|
||||
100
.github/workflows/linux-debian-generic.yml
vendored
@ -1,100 +0,0 @@
|
||||
name: Generic workflow for Debian and derivatives
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
container-image:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ inputs.container-image }}
|
||||
|
||||
steps:
|
||||
- name: get container ready for build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "update distro and install dependencies"
|
||||
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
|
||||
autoconf automake cmake g++ git libcrypto++-dev libcurl4-gnutls-dev \
|
||||
libgit2-dev libqt5qml5 libqt5quick5 libqt5svg5-dev \
|
||||
libqt5webkit5-dev libsqlite3-dev libssh2-1-dev libssl-dev libssl-dev \
|
||||
libtool libusb-1.0-0-dev libxml2-dev libxslt1-dev libzip-dev make \
|
||||
pkg-config qml-module-qtlocation qml-module-qtpositioning \
|
||||
qml-module-qtquick2 qt5-qmake qtchooser qtconnectivity5-dev \
|
||||
qtdeclarative5-dev qtdeclarative5-private-dev qtlocation5-dev \
|
||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||
qtquickcontrols2-5-dev xvfb libbluetooth-dev libmtp-dev \
|
||||
mdbtools-dev
|
||||
|
||||
git config --global user.email "ci@subsurface-divelog.org"
|
||||
git config --global user.name "Subsurface CI"
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
||||
# needs git from the previous step
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
no-increment: true
|
||||
|
||||
- name: build subsurface-mobile
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "building mobile"
|
||||
cd ..
|
||||
bash -e -x subsurface/scripts/build.sh -mobile
|
||||
|
||||
- name: test mobile build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "running tests for mobile"
|
||||
|
||||
cd build-mobile/tests
|
||||
# xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||
xvfb-run --auto-servernum make check
|
||||
|
||||
- name: build subsurface
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "building desktop"
|
||||
|
||||
# now build for the desktop version (including WebKit)
|
||||
cd ..
|
||||
bash -e -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||
|
||||
- name: test desktop build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "running tests for desktop"
|
||||
cd build/tests
|
||||
# xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||
xvfb-run --auto-servernum make check
|
||||
|
||||
- name: build subsurface-downloader
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "building downloader"
|
||||
cd ..
|
||||
bash -e -x subsurface/scripts/build.sh -downloader
|
||||
|
||||
- name: build smtk2ssrf
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "building smtk2ssrf"
|
||||
|
||||
# build smtk2ssrf (needs the artefacts generated by the subsurface build
|
||||
cd ..
|
||||
bash -e -x subsurface/scripts/smtk2ssrf-build.sh -y
|
||||
19
.github/workflows/linux-debian-trixie-5.15.yml
vendored
@ -1,19 +0,0 @@
|
||||
name: Debian trixie / Qt 5.15--
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
do-build-test:
|
||||
uses: ./.github/workflows/linux-debian-generic.yml
|
||||
with:
|
||||
container-image: debian:trixie
|
||||
68
.github/workflows/linux-fedora-35-qt6.yml
vendored
@ -1,68 +0,0 @@
|
||||
name: Fedora 35 / Qt 6--
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: fedora:35
|
||||
|
||||
steps:
|
||||
- name: get container ready for build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "update distro and install dependencies"
|
||||
|
||||
dnf update -y
|
||||
dnf install -y autoconf automake bluez-libs-devel cmake gcc-c++ git-core \
|
||||
libcurl-devel libsqlite3x-devel libssh2-devel libtool libudev-devel \
|
||||
libusbx-devel libxml2-devel libxslt-devel make \
|
||||
qt6-qtbase-devel qt6-qtconnectivity-devel qt6-qtdeclarative-devel \
|
||||
qt6-qtlocation-devel qt6-qtsvg-devel \
|
||||
qt6-qttools-devel redhat-rpm-config \
|
||||
libxkbcommon-devel qt6-qt5compat-devel \
|
||||
bluez-libs-devel libgit2-devel libzip-devel libmtp-devel \
|
||||
xorg-x11-server-Xvfb
|
||||
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
no-increment: true
|
||||
|
||||
- name: build Subsurface
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "building desktop"
|
||||
|
||||
# now build for the desktop version (without WebKit)
|
||||
cd ..
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
||||
git config --global --get-all safe.directory
|
||||
bash -e -x subsurface/scripts/build.sh -desktop -build-with-qt6
|
||||
|
||||
- name: test desktop build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "running tests for desktop"
|
||||
cd build/tests
|
||||
xvfb-run --auto-servernum make check
|
||||
|
||||
80
.github/workflows/linux-snap.yml
vendored
@ -1,80 +0,0 @@
|
||||
name: Snap
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
Snap:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
echo "100" > latest-subsurface-buildnumber
|
||||
echo "CICD-pull-request" > latest-subsurface-buildnumber-extension
|
||||
|
||||
- name: Set up LXD
|
||||
uses: canonical/setup-lxd@main
|
||||
|
||||
- name: Set up CCache
|
||||
id: setup-ccache
|
||||
run: |
|
||||
sudo apt-get install ccache
|
||||
mkdir -p ${HOME}/.ccache
|
||||
ccache --max-size=2G
|
||||
/snap/bin/lxc profile device add default ccache disk source=${HOME}/.ccache/ path=/root/.ccache
|
||||
|
||||
# Patch snapcraft.yaml to enable ccache
|
||||
patch -p1 < .github/workflows/scripts/linux-snap.patch
|
||||
|
||||
# Find common base between master and HEAD to use as cache key.
|
||||
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules origin master
|
||||
echo "key=$( git merge-base origin/master $GITHUB_SHA )" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: CCache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ccache-${{ runner.os }}-${{ steps.setup-ccache.outputs.key }}
|
||||
restore-keys: |
|
||||
ccache-${{ runner.os }}-
|
||||
path: ~/.ccache/**
|
||||
|
||||
- name: Build and verify the snap
|
||||
uses: canonical/actions/build-snap@release
|
||||
id: build-snap
|
||||
with:
|
||||
setup-lxd: false
|
||||
|
||||
- name: Clear CCache stats
|
||||
run: ccache --show-stats --zero-stats
|
||||
|
||||
- name: Upload the snap
|
||||
if: github.event_name == 'push'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ steps.build-snap.outputs.snap-name }}
|
||||
path: ${{ steps.build-snap.outputs.snap-path }}
|
||||
if-no-files-found: error
|
||||
@ -1,149 +0,0 @@
|
||||
name: Ubuntu 16.04 / Qt 5.15-- for AppImage
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ubuntu:16.04
|
||||
|
||||
steps:
|
||||
- name: get container ready for build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "update distro and install dependencies"
|
||||
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
|
||||
software-properties-common
|
||||
|
||||
add-apt-repository -y ppa:savoury1/qt-5-15
|
||||
add-apt-repository -y ppa:savoury1/kde-5-80
|
||||
add-apt-repository -y ppa:savoury1/gpg
|
||||
add-apt-repository -y ppa:savoury1/ffmpeg4
|
||||
add-apt-repository -y ppa:savoury1/vlc3
|
||||
add-apt-repository -y ppa:savoury1/gcc-9
|
||||
add-apt-repository -y ppa:savoury1/display
|
||||
add-apt-repository -y ppa:savoury1/apt-xenial
|
||||
add-apt-repository -y ppa:savoury1/gtk-xenial
|
||||
add-apt-repository -y ppa:savoury1/qt-xenial
|
||||
add-apt-repository -y ppa:savoury1/kde-xenial
|
||||
add-apt-repository -y ppa:savoury1/backports
|
||||
add-apt-repository -y ppa:savoury1/build-tools
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
|
||||
autoconf automake cmake g++ g++-9 git libcrypto++-dev libcurl4-gnutls-dev \
|
||||
libgit2-dev libqt5qml5 libqt5quick5 libqt5svg5-dev \
|
||||
libqt5webkit5-dev libsqlite3-dev libssh2-1-dev libssl-dev libssl-dev \
|
||||
libtool libusb-1.0-0-dev libxml2-dev libxslt1-dev libzip-dev make \
|
||||
pkg-config qml-module-qtlocation qml-module-qtpositioning \
|
||||
qml-module-qtquick2 qt5-qmake qtchooser qtconnectivity5-dev \
|
||||
qtdeclarative5-dev qtdeclarative5-private-dev qtlocation5-dev \
|
||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||
qtquickcontrols2-5-dev xvfb libbluetooth-dev libmtp-dev liblzma-dev \
|
||||
curl
|
||||
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 \
|
||||
--slave /usr/bin/g++ g++ /usr/bin/g++-9
|
||||
|
||||
- name: checkout sources
|
||||
# We cannot update this as glibc on 16.04 is too old for node 20.
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: build Subsurface
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "building desktop"
|
||||
|
||||
# now build the appimage
|
||||
cd ..
|
||||
bash -e -x subsurface/scripts/build.sh -desktop -create-appdir -build-with-webkit
|
||||
|
||||
- name: test desktop build
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "running tests for desktop"
|
||||
cd build/tests
|
||||
# xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||
xvfb-run --auto-servernum make check
|
||||
|
||||
- name: build appimage
|
||||
env:
|
||||
VERSION: ${{ steps.version_number.outputs.version }}
|
||||
run: |
|
||||
echo "--------------------------------------------------------------"
|
||||
echo "assembling AppImage"
|
||||
|
||||
export QT_PLUGIN_PATH=$QT_ROOT/plugins
|
||||
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||
export QT_DEBUG_PLUGINS=1
|
||||
|
||||
cd ..
|
||||
|
||||
# set up the appdir
|
||||
mkdir -p appdir/usr/plugins/
|
||||
|
||||
# mv googlemaps plugins into place
|
||||
mv appdir/usr/usr/lib/x86_64-linux-gnu/qt5/plugins/* appdir/usr/plugins # the usr/usr is not a typo, that's where it ends up
|
||||
rm -rf appdir/usr/home/ appdir/usr/include/ appdir/usr/share/man/ # No need to ship developer and man files as part of the AppImage
|
||||
rm -rf appdir/usr/usr appdir/usr/lib/x86_64-linux-gnu/cmake appdir/usr/lib/pkgconfig
|
||||
cp /usr/lib/x86_64-linux-gnu/libssl.so.1.1 appdir/usr/lib/
|
||||
cp /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 appdir/usr/lib/
|
||||
|
||||
# get the linuxdeployqt tool and run it to collect the libraries
|
||||
curl -L -O "https://github.com/probonopd/linuxdeployqt/releases/download/7/linuxdeployqt-7-x86_64.AppImage"
|
||||
chmod a+x linuxdeployqt*.AppImage
|
||||
unset QTDIR
|
||||
unset QT_PLUGIN_PATH
|
||||
unset LD_LIBRARY_PATH
|
||||
./linuxdeployqt*.AppImage --appimage-extract-and-run ./appdir/usr/share/applications/*.desktop -exclude-libs=libdbus-1.so.3 -bundle-non-qt-libs -qmldir=./subsurface/stats -qmldir=./subsurface/map-widget/ -verbose=2
|
||||
|
||||
# create the AppImage
|
||||
./linuxdeployqt*.AppImage --appimage-extract-and-run ./appdir/usr/share/applications/*.desktop -exclude-libs=libdbus-1.so.3 -appimage -qmldir=./subsurface/stats -qmldir=./subsurface/map-widget/ -verbose=2
|
||||
|
||||
# copy AppImage to the calling VM
|
||||
# with GitHub Actions the $GITHUB_WORKSPACE directory is the current working directory at the start of a step
|
||||
cp Subsurface*.AppImage* $GITHUB_WORKSPACE/Subsurface-$VERSION.AppImage
|
||||
|
||||
- name: PR artifacts
|
||||
if: github.event_name == 'pull_request'
|
||||
# We cannot update this as glibc on 16.04 is too old for node 20.
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Subsurface-Linux-AppImage-${{ steps.version_number.outputs.version }}
|
||||
path: Subsurface-*.AppImage
|
||||
compression-level: 0
|
||||
|
||||
# only publish a 'release' on push events (those include merging a PR)
|
||||
- name: upload binaries
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
repository: ${{ github.repository_owner }}/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
./Subsurface-*.AppImage
|
||||
19
.github/workflows/linux-ubuntu-20.04-5.15.yml
vendored
@ -1,19 +0,0 @@
|
||||
name: Ubuntu 20.04 / Qt 5.12--
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
do-build-test:
|
||||
uses: ./.github/workflows/linux-debian-generic.yml
|
||||
with:
|
||||
container-image: ubuntu:20.04
|
||||
19
.github/workflows/linux-ubuntu-22.04-5.15.yml
vendored
@ -1,19 +0,0 @@
|
||||
name: Ubuntu 22.04 / Qt 5.15--
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
do-build-test:
|
||||
uses: ./.github/workflows/linux-debian-generic.yml
|
||||
with:
|
||||
container-image: ubuntu:22.04
|
||||
19
.github/workflows/linux-ubuntu-24.04-5.15.yml
vendored
@ -1,19 +0,0 @@
|
||||
name: Ubuntu 24.04 / Qt 5.15--
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
do-build-test:
|
||||
uses: ./.github/workflows/linux-debian-generic.yml
|
||||
with:
|
||||
container-image: ubuntu:24.04
|
||||
80
.github/workflows/mac.yml
vendored
@ -1,80 +0,0 @@
|
||||
name: Mac
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macOS-11
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: setup Homebrew
|
||||
run: brew install hidapi libxslt libjpg libmtp create-dmg confuse
|
||||
|
||||
- name: checkout Qt resources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: subsurface/qt-mac
|
||||
ref: main
|
||||
path: qt-mac
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: build Subsurface
|
||||
id: build
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/..
|
||||
export QT_ROOT=${GITHUB_WORKSPACE}/qt-mac/Qt5.15.13
|
||||
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||
export PATH=$QT_ROOT/bin:$PATH
|
||||
export CMAKE_PREFIX_PATH=$QT_ROOT/lib/cmake
|
||||
|
||||
# now setup Subsurface with WebKit and build the dependencies, using the generic build script
|
||||
bash -e -x ./subsurface/scripts/build.sh -desktop -build-with-webkit -release -build-deps -ftdi -prep-only
|
||||
|
||||
echo "finished initial cmake setup of Subsurface - next build the package"
|
||||
cd subsurface/build
|
||||
echo "run the packaging script"
|
||||
bash -e -x ../packaging/macosx/make-package.sh | tee mp.log 2>&1
|
||||
IMG=$(grep ^created: mp.log | tail -1 | cut -b10-)
|
||||
echo "Created $IMG"
|
||||
echo "dmg=$IMG" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: publish pull request artifacts
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Subsurface-MacOS-${{ steps.version_number.outputs.version }}
|
||||
path: ${{ steps.build.outputs.dmg }}
|
||||
compression-level: 0
|
||||
|
||||
# only publish a 'release' on push events (those include merging a PR)
|
||||
- name: upload binaries
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
repository: ${{ github.repository_owner }}/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
fail_on_unmatched_files: true
|
||||
files: ${{ steps.build.outputs.dmg }}
|
||||
45
.github/workflows/post-releasenotes.yml
vendored
@ -1,45 +0,0 @@
|
||||
name: Post Release Notes
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
postRelease:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
# since we are running this step on a pull request, we will skip build numbers in releases
|
||||
- name: assemble release notes
|
||||
env:
|
||||
EVENT_HEAD_COMMIT_ID: ${{ github.event.head_commit.id }}
|
||||
# Required because we are using the GitHub CLI in 'create-releasenotes.sh'
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
scripts/create-releasenotes.sh $EVENT_HEAD_COMMIT_ID
|
||||
|
||||
# add a file containing the release title so it can be picked up and listed on the release page on our web server
|
||||
- name: publish release
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
repository: ${{ github.repository_owner }}/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
files: release_content_title.txt
|
||||
body_path: gh_release_notes.md
|
||||
169
.github/workflows/scripts/check_usns.py
vendored
@ -1,169 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
# coding: utf-8
|
||||
|
||||
import json
|
||||
import logging
|
||||
import multiprocessing
|
||||
import os
|
||||
import pathlib
|
||||
import pprint
|
||||
import sys
|
||||
import subprocess
|
||||
import tempfile
|
||||
|
||||
from launchpadlib import errors as lp_errors # fades
|
||||
from launchpadlib.credentials import RequestTokenAuthorizationEngine, UnencryptedFileCredentialStore
|
||||
from launchpadlib.launchpad import Launchpad
|
||||
import requests # fades
|
||||
|
||||
|
||||
logger = logging.getLogger("subsurface.check_usns")
|
||||
logger.addHandler(logging.StreamHandler())
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
APPLICATION = "subsurface-ci"
|
||||
LAUNCHPAD = "production"
|
||||
TEAM = "subsurface"
|
||||
SOURCE_NAME = "subsurface"
|
||||
SNAPS = {
|
||||
"subsurface": {
|
||||
"stable": {"recipe": "subsurface-stable"},
|
||||
},
|
||||
}
|
||||
|
||||
STORE_URL = "https://api.snapcraft.io/api/v1/snaps" "/details/{snap}?channel={channel}"
|
||||
STORE_HEADERS = {"X-Ubuntu-Series": "16", "X-Ubuntu-Architecture": "{arch}"}
|
||||
|
||||
CHECK_NOTICES_PATH = "/snap/bin/review-tools.check-notices"
|
||||
CHECK_NOTICES_ARGS = ["--ignore-pockets", "esm-apps"]
|
||||
|
||||
|
||||
def get_store_snap(processor, snap, channel):
|
||||
logger.debug("Checking for snap %s on %s in channel %s", snap, processor, channel)
|
||||
data = {
|
||||
"snap": snap,
|
||||
"channel": channel,
|
||||
"arch": processor,
|
||||
}
|
||||
resp = requests.get(STORE_URL.format(**data), headers={k: v.format(**data) for k, v in STORE_HEADERS.items()})
|
||||
logger.debug("Got store response: %s", resp)
|
||||
|
||||
try:
|
||||
result = json.loads(resp.content)
|
||||
except json.JSONDecodeError:
|
||||
logger.error("Could not parse store response: %s", resp.content)
|
||||
else:
|
||||
return result
|
||||
|
||||
|
||||
def fetch_url(entry):
|
||||
dest, uri = entry
|
||||
r = requests.get(uri, stream=True)
|
||||
logger.debug("Downloading %s to %s…", uri, dest)
|
||||
if r.status_code == 200:
|
||||
with open(dest, "wb") as f:
|
||||
for chunk in r:
|
||||
f.write(chunk)
|
||||
return dest
|
||||
|
||||
|
||||
def check_snap_notices(store_snaps):
|
||||
with tempfile.TemporaryDirectory(dir=pathlib.Path.home()) as dir:
|
||||
snaps = multiprocessing.Pool(8).map(
|
||||
fetch_url,
|
||||
(
|
||||
(pathlib.Path(dir) / f"{snap['package_name']}_{snap['revision']}.snap", snap["download_url"])
|
||||
for snap in store_snaps
|
||||
),
|
||||
)
|
||||
|
||||
try:
|
||||
notices = subprocess.check_output([CHECK_NOTICES_PATH] + CHECK_NOTICES_ARGS + snaps, encoding="UTF-8")
|
||||
logger.debug("Got check_notices output:\n%s", notices)
|
||||
except subprocess.CalledProcessError as e:
|
||||
logger.error("Failed to check notices:\n%s", e.output)
|
||||
sys.exit(2)
|
||||
else:
|
||||
notices = json.loads(notices)
|
||||
return notices
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_notices = os.path.isfile(CHECK_NOTICES_PATH) and os.access(CHECK_NOTICES_PATH, os.X_OK)
|
||||
|
||||
if not check_notices:
|
||||
raise RuntimeError("`review-tools` not found.")
|
||||
|
||||
try:
|
||||
lp = Launchpad.login_with(
|
||||
APPLICATION,
|
||||
LAUNCHPAD,
|
||||
version="devel",
|
||||
authorization_engine=RequestTokenAuthorizationEngine(LAUNCHPAD, APPLICATION),
|
||||
credential_store=UnencryptedFileCredentialStore(os.path.expanduser(sys.argv[1])),
|
||||
)
|
||||
except NotImplementedError:
|
||||
raise RuntimeError("Invalid credentials.")
|
||||
|
||||
ubuntu = lp.distributions["ubuntu"]
|
||||
logger.debug("Got ubuntu: %s", ubuntu)
|
||||
|
||||
team = lp.people[TEAM]
|
||||
logger.debug("Got team: %s", team)
|
||||
|
||||
errors = []
|
||||
|
||||
for snap, channels in SNAPS.items():
|
||||
for channel, snap_map in channels.items():
|
||||
logger.info("Processing channel %s for snap %s…", channel, snap)
|
||||
|
||||
try:
|
||||
snap_recipe = lp.snaps.getByName(owner=team, name=snap_map["recipe"])
|
||||
logger.debug("Got snap: %s", snap_recipe)
|
||||
except lp_errors.NotFound as ex:
|
||||
logger.error("Snap not found: %s", snap_map["recipe"])
|
||||
errors.append(ex)
|
||||
continue
|
||||
|
||||
if len(snap_recipe.pending_builds) > 0:
|
||||
logger.info("Skipping %s: snap builds pending…", snap_recipe.web_link)
|
||||
continue
|
||||
|
||||
store_snaps = tuple(
|
||||
filter(
|
||||
lambda snap: snap.get("result") != "error",
|
||||
(get_store_snap(processor.name, snap, channel) for processor in snap_recipe.processors),
|
||||
)
|
||||
)
|
||||
|
||||
logger.debug("Got store versions: %s", {snap["architecture"][0]: snap["version"] for snap in store_snaps})
|
||||
|
||||
snap_notices = check_snap_notices(store_snaps)[snap]
|
||||
|
||||
for store_snap in store_snaps:
|
||||
if str(store_snap["revision"]) not in snap_notices:
|
||||
logger.error(
|
||||
"Revision %s missing in result, see above for any review-tools errors.", store_snap["revision"]
|
||||
)
|
||||
errors.append(f"Revision {store_snap['revision']} missing in result:\n{store_snap}")
|
||||
|
||||
if any(snap_notices.values()):
|
||||
logger.info("Found USNs:\n%s", pprint.pformat(snap_notices))
|
||||
else:
|
||||
logger.info("Skipping %s: no USNs found", snap)
|
||||
continue
|
||||
|
||||
logger.info("Triggering %s…", snap_recipe.description or snap_recipe.name)
|
||||
|
||||
snap_recipe.requestBuilds(
|
||||
archive=snap_recipe.auto_build_archive,
|
||||
pocket=snap_recipe.auto_build_pocket,
|
||||
channels=snap_recipe.auto_build_channels,
|
||||
)
|
||||
logger.debug("Triggered builds: %s", snap_recipe.web_link)
|
||||
|
||||
for error in errors:
|
||||
logger.debug(error)
|
||||
|
||||
if errors:
|
||||
sys.exit(1)
|
||||
44
.github/workflows/scripts/linux-snap.patch
vendored
@ -1,44 +0,0 @@
|
||||
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
|
||||
index 9f34d0169..0d5a89fd9 100644
|
||||
--- a/snap/snapcraft.yaml
|
||||
+++ b/snap/snapcraft.yaml
|
||||
@@ -35,6 +35,7 @@ parts:
|
||||
source: https://github.com/Subsurface/googlemaps.git
|
||||
plugin: make
|
||||
build-packages:
|
||||
+ - ccache
|
||||
- qtbase5-dev
|
||||
- wget
|
||||
override-pull: |
|
||||
@@ -79,6 +80,7 @@ parts:
|
||||
override-build: |
|
||||
qmake \
|
||||
INCLUDEPATH+=${CRAFT_PART_SRC}/QtHeaders \
|
||||
+ CONFIG+=ccache \
|
||||
${CRAFT_PART_SRC}
|
||||
craftctl default
|
||||
|
||||
@@ -111,7 +113,11 @@ parts:
|
||||
source: .
|
||||
source-type: git
|
||||
source-subdir: libdivecomputer
|
||||
+ autotools-configure-parameters:
|
||||
+ - CC="ccache gcc"
|
||||
+ - CXX="ccache g++"
|
||||
build-packages:
|
||||
+ - ccache
|
||||
- libbluetooth-dev
|
||||
- libhidapi-dev
|
||||
- libusb-dev
|
||||
@@ -134,8 +140,11 @@ parts:
|
||||
- -DFTDISUPPORT=ON
|
||||
- -DLIBDIVECOMPUTER_LIBRARIES=../../../stage/usr/local/lib/libdivecomputer.so
|
||||
- -DLIBDIVECOMPUTER_INCLUDE_DIR=../../../stage/usr/local/include
|
||||
+ - -DCMAKE_C_COMPILER_LAUNCHER=ccache
|
||||
+ - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
build-packages:
|
||||
- build-essential
|
||||
+ - ccache
|
||||
- libcurl4-gnutls-dev
|
||||
- libftdi1-dev
|
||||
- libgit2-dev
|
||||
2
.github/workflows/scripts/requirements.txt
vendored
@ -1,2 +0,0 @@
|
||||
launchpadlib
|
||||
requests
|
||||
37
.github/workflows/snap_usns.yml
vendored
@ -1,37 +0,0 @@
|
||||
name: SnapUSNs
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 5 * * *'
|
||||
|
||||
jobs:
|
||||
CheckUSNs:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install Python dependencies
|
||||
uses: insightsengineering/pip-action@v2.0.0
|
||||
with:
|
||||
requirements: .github/workflows/scripts/requirements.txt
|
||||
|
||||
- name: Install Snap dependencies
|
||||
run: |
|
||||
sudo snap install review-tools --edge
|
||||
|
||||
- name: Set up Launchpad credentials
|
||||
uses: DamianReeves/write-file-action@v1.2
|
||||
with:
|
||||
path: lp_credentials
|
||||
contents: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
|
||||
|
||||
- name: Check for USNs
|
||||
run: .github/workflows/scripts/check_usns.py lp_credentials
|
||||
55
.github/workflows/ubuntu-launchpad-build.yml
vendored
@ -1,55 +0,0 @@
|
||||
name: Ubuntu Launchpad Build
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
- current
|
||||
|
||||
jobs:
|
||||
push-to-ppa:
|
||||
|
||||
name: Submit build to Ubuntu Launchpad
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: Setup build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y devscripts dput gpg debhelper qt5-qmake cmake
|
||||
|
||||
- name: Setup gpg key token for launchpad
|
||||
env:
|
||||
GPG_PRIVATE_KEY: ${{ secrets.PPA_SECRET_KEY }}
|
||||
run: |
|
||||
echo "$GPG_PRIVATE_KEY" > ~/.key
|
||||
gpg --import ~/.key
|
||||
|
||||
- name: setup git
|
||||
run: |
|
||||
git config --global --add safe.directory /__w/subsurface/subsurface
|
||||
git config --global --add safe.directory /__w/subsurface/subsurface/libdivecomputer
|
||||
|
||||
- name: Checkout googlemaps
|
||||
run: |
|
||||
cd ..
|
||||
git clone https://github.com/subsurface/googlemaps
|
||||
|
||||
- name: run the launchpad make-package script
|
||||
run: |
|
||||
cd ..
|
||||
bash -x subsurface/packaging/ubuntu/make-package.sh $GITHUB_REF_NAME
|
||||
|
||||
38
.github/workflows/windows-mxe-dockerimage.yml
vendored
@ -1,38 +0,0 @@
|
||||
name: Windows (MXE) Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- scripts/docker/mxe-build-container/**
|
||||
- .github/workflows/windows-mxe-dockerimage.yml
|
||||
|
||||
jobs:
|
||||
windows-mxe:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
VERSION: ${{ '3.1.0' }} # 'official' images should have a dot-zero version
|
||||
mxe_sha: 'c0bfefc57a00fdf6cb5278263e21a478e47b0bf5'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build the name for the docker image
|
||||
id: build_name
|
||||
run: |
|
||||
v=$VERSION
|
||||
b=$GITHUB_REF # -BRANCH suffix, unless the branch is master
|
||||
b=${b/refs\/heads\//}
|
||||
b=${b,,} # the name needs to be all lower case
|
||||
if [ $b = "master" ] ; then b="" ; else b="-$b" ; fi
|
||||
echo "NAME=$GITHUB_REPOSITORY_OWNER/mxe-build${b}:${v}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and Publish Linux Docker image to Dockerhub
|
||||
uses: elgohr/Publish-Docker-Github-Action@v5
|
||||
with:
|
||||
name: ${{ steps.build_name.outputs.NAME }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
workdir: './scripts/docker/mxe-build-container/'
|
||||
buildargs: mxe_sha
|
||||
73
.github/workflows/windows.yml
vendored
@ -1,73 +0,0 @@
|
||||
name: Windows
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- scripts/docker/**
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker://subsurface/mxe-build:3.1.0
|
||||
|
||||
steps:
|
||||
- name: checkout sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: set the version information
|
||||
id: version_number
|
||||
uses: ./.github/actions/manage-version
|
||||
with:
|
||||
nightly-builds-secret: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
|
||||
- name: get other dependencies
|
||||
env:
|
||||
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
||||
run: |
|
||||
echo "Running script to install additional dependancies into container"
|
||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
||||
cd /win
|
||||
ln -s /__w/subsurface/subsurface .
|
||||
bash -x subsurface/packaging/windows/container-prep.sh 2>&1 | tee pre-build.log
|
||||
|
||||
- name: run build
|
||||
run: |
|
||||
export OUTPUT_DIR="$GITHUB_WORKSPACE"
|
||||
cd /win
|
||||
bash -x subsurface/packaging/windows/in-container-build.sh 2>&1 | tee build.log
|
||||
grep "Built target installer" build.log
|
||||
|
||||
- name: publish pull request artifacts
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Subsurface-Windows-${{ steps.version_number.outputs.version }}
|
||||
path: |
|
||||
subsurface*.exe*
|
||||
smtk2ssrf*.exe
|
||||
|
||||
# only publish a 'release' on push events (those include merging a PR)
|
||||
- name: upload binaries
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: v${{ steps.version_number.outputs.version }}
|
||||
repository: ${{ github.repository_owner }}/nightly-builds
|
||||
token: ${{ secrets.NIGHTLY_BUILDS }}
|
||||
prerelease: false
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
./subsurface*.exe*
|
||||
./smtk2ssrf*.exe
|
||||
20
.gitignore
vendored
@ -17,36 +17,18 @@ Documentation/docbook-xsl.css
|
||||
Documentation/user-manual*.html
|
||||
Documentation/user-manual*.pdf
|
||||
Documentation/user-manual*.text
|
||||
Documentation/mobile-images/mobile-images
|
||||
packaging/windows/subsurface.nsi
|
||||
packaging/macos/Info.plist
|
||||
*.kdev4
|
||||
callgrind.out.*
|
||||
.gitignore
|
||||
build*/
|
||||
build/
|
||||
.rcc
|
||||
.moc
|
||||
.uic
|
||||
.obj
|
||||
Makefile
|
||||
subsurface.pro.user*
|
||||
Subsurface-mobile.pro.user*
|
||||
Subsurface.app
|
||||
.DS_Store
|
||||
!android/**/*.xml
|
||||
build*
|
||||
nightly-builds/
|
||||
mobile-widgets/qml/kirigami
|
||||
mobile-widgets/3rdparty/ECM/
|
||||
mobile-widgets/3rdparty/breeze-icons/
|
||||
mobile-widgets/3rdparty/extra-cmake-modules/
|
||||
mobile-widgets/3rdparty/kirigami/
|
||||
packaging/ios/install-root
|
||||
packaging/ios/Info.plist
|
||||
packaging/ios/Qt
|
||||
packaging/ios/asset_catalog_compiler.Info.plist
|
||||
appdata/subsurface.appdata.xml
|
||||
android-mobile/Roboto-Regular.ttf
|
||||
gh_release_notes.md
|
||||
release_content_title.txt
|
||||
/output/
|
||||
|
||||
4
.gitmodules
vendored
@ -1,4 +0,0 @@
|
||||
[submodule "libdivecomputer"]
|
||||
path = libdivecomputer
|
||||
url = https://github.com/Subsurface/libdc.git
|
||||
branch = Subsurface-NG
|
||||
17
.lgtm.yml
@ -1,17 +0,0 @@
|
||||
path_classifiers:
|
||||
test:
|
||||
- "tests/*"
|
||||
|
||||
extraction:
|
||||
cpp:
|
||||
configure:
|
||||
command:
|
||||
- export INSTALL_ROOT=/opt/out
|
||||
- export PKG_CONFIG_PATH=$INSTALL_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
- bash -x ./scripts/build-libdivecomputer.sh
|
||||
- mkdir _lgtm_build_dir
|
||||
- cd _lgtm_build_dir
|
||||
- cmake -DLIBGIT2_DYNAMIC=ON -DNO_DOCS=ON -DCMAKE_VERBOSE_MAKEFILE=ON ..
|
||||
|
||||
queries:
|
||||
- exclude: "cpp/short-global-name"
|
||||
47
.mailmap
@ -1,47 +0,0 @@
|
||||
<olteanu.claudiu@ymail.com> <olteanu.vasilica.claudiu@gmail.com>
|
||||
<danilo.eu@gmail.com> <danilo.cesar@collabora.co.uk>
|
||||
<dirk@hohndel.org> <dhohndel@dhohndel-mac02.jf.intel.com>
|
||||
<dirk@hohndel.org> <hohndel@mail.gr8dns.org>
|
||||
Dirk Hohndel <dirk@hohndel.org> Dirk Hohndel (Intel) <dhohndel@dhohndel-mac02.jf.intel.com>
|
||||
Dirk Hohndel <dirk@hohndel.org> Subsurface <dirk@subsurface-divelog.org>
|
||||
Dirk Hohndel <dirk@hohndel.org> Subsurface CI <dirk@hohndel.org>
|
||||
<guido.lerch@gmail.com> <glerch@Guidos-MacBook-Air.local>
|
||||
<jacco.van.koll@gmail.com> <jko@haringstad.com>
|
||||
<jlmulder@xs4all.nl> <jlmulder@planet.nl>
|
||||
<jef@libdivecomputer.org> <jefdriesen@telenet.be>
|
||||
<j.bygdell@gmail.com> <narogh@Qutie.local>
|
||||
<karent.bug@gmail.com> <k.arentowicz@gmail.com>
|
||||
<me@bearsh.org> <m.gysel@consonics.ch>
|
||||
<miika.turkia@gmail.com> <miika.turkia@nixu.fi>
|
||||
Robert C. Helling <helling@atdotde.de>
|
||||
Robert C. Helling <helling@atdotde.de> Robert.Helling <helling@atdotde.de>
|
||||
Robert C. Helling <helling@atdotde.de> Robert.Helling <Helling@th-nb-tmpmbp05.fritz.box>
|
||||
Robert C. Helling <helling@atdotde.de> Robert C. Helling <robert@thetheoreticaldiver.org>
|
||||
Robert C. Helling <helling@atdotde.de> Robert C. Helling <helling@lmu.de>
|
||||
Robert C. Helling <helling@atdotde.de> Robert Helling <helling@lmu.de>
|
||||
<sander@myowndomain.nl> <sander.kleywegt@netscout.com>
|
||||
<tim@tee-jay.demon.co.uk> <tim@tee-jay.org.uk>
|
||||
<tim@tee-jay.demon.co.uk> <timw00.tw@googlemail.com>
|
||||
<tomaz.canabrava@intel.com> <tcanabrava@kde.org>
|
||||
<tomaz.canabrava@intel.com> <tomaz.canabrava@gmail.com>
|
||||
<tomaz.canabrava@intel.com> <tomazcanabrava@Tomazs-MacBook-Pro.local>
|
||||
Willem Ferguson <willemferguson@zoology.up.ac.za>
|
||||
<willemferguson@zoology.up.ac.za> <fergusonwillem@gmail.com>
|
||||
<willemferguson@zoology.up.ac.za> <willem@localhost.localdomain>
|
||||
<willemferguson@zoology.up.ac.za> <willem@willem-Precision-M4700.(none)>
|
||||
<willemferguson@zoology.up.ac.za> <fergusonwillem@gmail.com>
|
||||
<jan@casacondor.com> <jani@libreoffice.org>
|
||||
<jan@casacondor.com> <jani@apache.org>
|
||||
<jan@casacondor.com> <jancasacondor@gmail.com>
|
||||
jan Iversen <jan@casacondor.com> jan iversen <jani@apache.org>
|
||||
Gehad Elrobey <gehadelrobey@gmail.com> <gehadelrobey@gmail.com>
|
||||
Joseph W. Joshua <joejoshw@gmail.com> <joejoshw@gmail.com>
|
||||
Joseph W. Joshua <joejoshw@gmail.com> <joshua@megvel.me.ke>
|
||||
Luisa Pires <luisapiresdesign@gmail.com> <luisapiresdesign@gmail.com>
|
||||
Pedro Neves <nevesdiver@gmail.com> <nevesdiver@gmail.com>
|
||||
Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it> <tiposchi@tiscali.it>
|
||||
Benjamin Fogel <nystire@gmail.com> <nystire@gmail.com>
|
||||
Guido Lerch <guido.lerch@gmail.com> <guido.lerch@gmail.com>
|
||||
Guido Lerch <guido.lerch@gmail.com> <glerch@Guidos-MacBook-Air.local>
|
||||
Joakim Bygdell <j.bygdell@gmail.com> <j.bygdell@gmail.com>
|
||||
|
||||
@ -11,4 +11,3 @@ type = TS
|
||||
source_file = terms
|
||||
source_lang = en
|
||||
type = txt
|
||||
|
||||
|
||||
48
CHANGELOG.md
@ -1,48 +0,0 @@
|
||||
statistics: show proper dates in January
|
||||
desktop: add country to the fields indexed for full text search
|
||||
import: update libdivecomputer version, add support for the Scubapro G3 / Luna and Shearwater Tern
|
||||
desktop: add a button linking to the 'Contribute' page
|
||||
mobile: fix configuration of decompression ceiling and gradient factors
|
||||
desktop: fix gas switches in UDDF exports
|
||||
core: allow of up to 6 O2 sensors (and corresponding voting logic)
|
||||
desktop: add divemode as a possible dive list column
|
||||
profile-widget: Now zomed in profiles can be panned with horizontal scroll.
|
||||
desktop: hide only events with the same severity when 'Hide similar events' is used
|
||||
equipment: mark gas mixes reported by the dive computer as 'inactive' as 'not used'
|
||||
equipment: include unused cylinders in merged dive if the preference is enabled
|
||||
equipment: fix bug showing the first diluent in the gas list as 'used' for CCR dives
|
||||
desktop: added button to hide the infobox in the dive profile
|
||||
desktop: use persisted device information for the dive computer configuration
|
||||
core: fix bug using salinity and pressure values in mbar <-> depth conversion
|
||||
export: fix bug resulting in invalid CSV for '""' in 'CSV summary dive details'
|
||||
desktop: add support for multiple tanks to the profile ruler
|
||||
export: change format produced by 'CSV summary dive details' from TSV (tab separated) to CSV
|
||||
desktop: add function to merge dive site into site selected in list
|
||||
import: add option to synchronise dive computer time when downloading dives
|
||||
desktop: fix salinity combo/icon when DC doesnt have salinity info
|
||||
core: fix bug when save sea water salinity given by DC
|
||||
desktop: add option to force firmware update on OSTC4
|
||||
desktop: add column for dive notes to the dive list table
|
||||
desktop: Add an option for printing in landscape mode
|
||||
desktop: fix bug when printing a dive plan with multiple segments
|
||||
desktop: fix remembering of bluetooth address for remembered dive computers (not MacOS)
|
||||
desktop: fix bug in bailout gas selection for CCR dives
|
||||
desktop: fix crash on cylinder update of multiple dives
|
||||
desktop: use dynamic tank use drop down in equipment tab and planner
|
||||
desktop: fix brightness configuration for OSTC4
|
||||
equipment: Use 'diluent' as default gas use type if the dive mode is 'CCR'
|
||||
htmlexport: fix search in HTML export
|
||||
htmlexport: fix diveguide display
|
||||
statistics: fix value axis for degenerate value ranges
|
||||
profile: Show correct gas density when in CCR mode
|
||||
statistics: show correct color of selected scatter items when switching to unbinned mode
|
||||
statistics: fix display of month number in continuous date axis
|
||||
statistics: fix range of continuous date axis
|
||||
desktop: fix dive time display in time shift dialog
|
||||
libdivecomputer: garmin: relax string parsing sanity checks
|
||||
libdivecomputer: add Cressi Donatello, Scubapro G2 TEK, Oceanic Geo Air, Scorpena Alpha
|
||||
|
||||
---
|
||||
* Always add new entries at the very top of this file above other existing entries and this note.
|
||||
* Use this layout for new entries: `[Area]: [Details about the change] [reference thread / issue]`
|
||||
# vim: textwidth=100
|
||||
1238
CMakeLists.txt
424
CODINGSTYLE.md
@ -1,424 +0,0 @@
|
||||
# Coding Style
|
||||
|
||||
Here are some of the basics that we are trying to enforce for our coding style
|
||||
and conventions. The existing code (as of the commit that adds these lines) is
|
||||
not yet fully consistent to these rules, but following these rules will make
|
||||
sure that no one yells at you about your patches.
|
||||
|
||||
We have a script that can be used to reformat code to be reasonably close
|
||||
to these rules; it's in `scripts/whitespace.pl` – this script requires
|
||||
clang-format to be installed (which sadly isn't installed by default on
|
||||
any of our platforms; even on Mac where clang is the default compiler).
|
||||
|
||||
At the end of this file are some ideas for your `.emacs` file (if that's
|
||||
your editor of choice) as well as for QtCreator. If you have settings for
|
||||
other editors that implement this coding style, please add them here.
|
||||
|
||||
## Basic rules
|
||||
|
||||
* all indentation is tabs (set to 8 char) with the exception of
|
||||
continuation lines that are aligned with tabs and then spaces
|
||||
|
||||
* all keywords followed by a '(' have a space in between
|
||||
```
|
||||
if (condition)
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
```
|
||||
|
||||
* function calls do NOT have a space between their name and argument
|
||||
```
|
||||
i = some_function(argument);
|
||||
```
|
||||
|
||||
* usually there is no space on the inside of parenthesis (see examples
|
||||
above)
|
||||
|
||||
* function / method implementations have their opening curly braces in
|
||||
column 1
|
||||
|
||||
* all other opening curly braces follow at the end of the line, with a
|
||||
space separating them:
|
||||
```
|
||||
if (condition) {
|
||||
dosomething();
|
||||
dosomethingelse();
|
||||
}
|
||||
```
|
||||
|
||||
* both sides of an `if` / `else` clause either use or do not use curly braces:
|
||||
```
|
||||
if (condition)
|
||||
i = 4;
|
||||
else
|
||||
j = 6;
|
||||
|
||||
if (condition) {
|
||||
i = 6;
|
||||
} else {
|
||||
i = 4;
|
||||
j = 6;
|
||||
}
|
||||
```
|
||||
|
||||
* use space to make visual separation easier
|
||||
```
|
||||
a = b + 3 + e / 4;
|
||||
```
|
||||
|
||||
* continuation lines have the operator / comma at the end
|
||||
```
|
||||
if (very_long_condition_1 ||
|
||||
condition_2)
|
||||
|
||||
b = a + (c + d +
|
||||
f + z);
|
||||
```
|
||||
|
||||
* in a C++ constructor initialization list, the colon is on the same line and
|
||||
continuation lines are aligned as the rule above:
|
||||
```
|
||||
ClassName::ClassName() : x(1),
|
||||
y(2),
|
||||
z(3)
|
||||
{
|
||||
}
|
||||
```
|
||||
|
||||
* unfortunate inconsistency
|
||||
|
||||
- C code usually uses underscores to structure names
|
||||
```
|
||||
variable_in_C
|
||||
```
|
||||
- In contrast, C++ code usually uses camelCase
|
||||
```
|
||||
variableInCPlusPlus
|
||||
```
|
||||
for variable names and PascalCase
|
||||
```
|
||||
ClassInCPlusPlus
|
||||
```
|
||||
for names of classes and other types
|
||||
|
||||
where the two meet, use your best judgment and go for best consistency
|
||||
(i.e., where does the name "originate")
|
||||
|
||||
* macro names should be capitalized; e.g., prefer
|
||||
```
|
||||
#define FROB 17
|
||||
#define FROBULATE(x) (x)+FROB
|
||||
```
|
||||
to
|
||||
```
|
||||
#define frob 17
|
||||
#define frobulate(x) (x)+frob
|
||||
```
|
||||
|
||||
* there is a strong preference for lower case file names; sometimes conventions
|
||||
or outside requirements make camelCase filenames the better (or only) choice,
|
||||
but absent such an outside reason all file names should be lower case
|
||||
This rule applies to new file names, existing file names should not be
|
||||
changed without a reason.
|
||||
|
||||
* cpp/h file names should usually be identical to the class name but in lower
|
||||
case. Where it seems appropriate, multiple, closely related classes can be
|
||||
in a single file with a more generic name.
|
||||
|
||||
* `switch` statements with blocks are a little bit special (to avoid indenting
|
||||
too far)
|
||||
```
|
||||
switch (foo) {
|
||||
case FIRST:
|
||||
whatever();
|
||||
break;
|
||||
case SECOND: {
|
||||
int i;
|
||||
for (i = 0; i < 5; i++)
|
||||
do_something(i);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Coding conventions
|
||||
|
||||
* variable declarations
|
||||
|
||||
In C code we really like them to be at the beginning of a code block,
|
||||
not interspersed in the middle.
|
||||
in C++ we are a bit less strict about this – but still, try not to go
|
||||
crazy. Notably, in C++ the lifetime of a variable often coincides with the
|
||||
lifetime of a resource (e.g. file) and therefore the variable is defined
|
||||
at the place where the resource is needed.
|
||||
|
||||
* The `*`, `&` and `&&` declarators are grouped with the name, not the type
|
||||
(classical C-style) as in `char *string` instead of `char* string`. This
|
||||
reflects the precedence rules of the language: `int &i` means that the name
|
||||
`i` stands for a reference [to an object with type `int`], not that
|
||||
`i` stands for an object of the type [reference to `int`].
|
||||
Although this may seem like hairsplitting (both interpretations
|
||||
have the same effect) it is crucial in the
|
||||
definition of multiple variables, such
|
||||
as
|
||||
```
|
||||
struct dive *next, **pprev;
|
||||
```
|
||||
|
||||
* In C++ code, we generally use explicit types in variable declarations for clarity.
|
||||
Use `auto` sparingly and only in cases where code readability improves.
|
||||
Two classical examples are:
|
||||
- Iterators, whose type names often are verbose:
|
||||
```
|
||||
auto it = m_trackers.find(when);
|
||||
```
|
||||
is not only distinctly shorter than
|
||||
```
|
||||
QMap<qint64, gpsTracker>::iterator it = m_trackers.find(when);
|
||||
```
|
||||
it will also continue working if a different data structure is chosen.
|
||||
- If the type is given in the same line anyway. Thus,
|
||||
```
|
||||
auto service = qobject_cast<QLowEnergyService*>(sender());
|
||||
```
|
||||
is easier to read than and conveys the same information as
|
||||
```
|
||||
QLowEnergyService *service = qobject_cast<QLowEnergyService*>(sender());
|
||||
```
|
||||
- If the variable is a container that is only assigned to a local variable to
|
||||
be able to use it in a range-based `for` loop
|
||||
```
|
||||
const auto serviceUuids = device.serviceUuids();
|
||||
for (QBluetoothUuid id: serviceUuids) {
|
||||
```
|
||||
The variable has also to be const to avoid that Qt containers will do a
|
||||
deep copy when the range bases `for` loop will call the `begin()` method
|
||||
internally.
|
||||
|
||||
* text strings
|
||||
|
||||
The default language of subsurface is US English so please use US English
|
||||
spelling and terminology.
|
||||
User-visible strings should be passed to the `tr()` function to enable
|
||||
translation into other languages.
|
||||
- like this
|
||||
```
|
||||
QString msgTitle = tr("Check for updates.");
|
||||
```
|
||||
- rather than
|
||||
```
|
||||
QString msgTitle = "Check for updates.";
|
||||
```
|
||||
|
||||
This works by default in classes (indirectly) derived from `QObject`. Each
|
||||
string to be translated is associated with a context, which corresponds
|
||||
to the class name. Classes that are not derived from `QObject` can generate
|
||||
the `tr()` functions by using the `Q_DECLARE_TR_FUNCTIONS` macro:
|
||||
```
|
||||
#include <QCoreApplication>
|
||||
|
||||
class myClass {
|
||||
Q_DECLARE_TR_FUNCTIONS(gettextfromC)
|
||||
...
|
||||
};
|
||||
```
|
||||
|
||||
As an alternative, which also works outside of class context, the `tr()`
|
||||
function of a different class can be called. This avoids creating multiple
|
||||
translations for the same string:
|
||||
```
|
||||
gettextFromC::tr("%1km")
|
||||
```
|
||||
|
||||
The `gettextFromC` class in the above example was created as a catch-all
|
||||
context for translations accessed in C code. But it can also be used
|
||||
from C++ helper functions. To use it from C, include the `"core/gettext.h"`
|
||||
header and invoke the `translate()` macro:
|
||||
```
|
||||
#include "core/gettext.h"
|
||||
|
||||
report_error(translate("gettextFromC", "Remote storage and local data diverged"));
|
||||
```
|
||||
It is crucial to pass `"gettextFromC"` as a first macro argument so that Qt
|
||||
is able to associate the string with the correct context.
|
||||
The translate macro returns a cached C-style string, which is generated at runtime
|
||||
when the particular translation string is encountered for the first time.
|
||||
It remains valid during the whole application's life time.
|
||||
|
||||
Outside of function context, the `QT_TRANSLATE_NOOP` macro can be used as in
|
||||
```
|
||||
struct ws_info_t ws_info[100] = {
|
||||
{ QT_TRANSLATE_NOOP("gettextFromC", "integrated"), 0 },
|
||||
{ QT_TRANSLATE_NOOP("gettextFromC", "belt"), 0 },
|
||||
{ QT_TRANSLATE_NOOP("gettextFromC", "ankle"), 0 },
|
||||
{ QT_TRANSLATE_NOOP("gettextFromC", "backplate"), 0 },
|
||||
{ QT_TRANSLATE_NOOP("gettextFromC", "clip-on"), 0 },
|
||||
};
|
||||
```
|
||||
Note that here, the texts will be scheduled for translation with the `"gettextFromC"`
|
||||
context, but the array is only initialized with the original text. The actual
|
||||
translation has to be performed later in code. For C-code, the `QT_TRANSLATE_NOOP`
|
||||
macro is defined in the `"core/gettext.h"` header.
|
||||
|
||||
* UI text style
|
||||
|
||||
These guidelines are designed to ensure consistency in presentation within
|
||||
Subsurface.
|
||||
Only the first word of multi-word text strings should be capitalized unless
|
||||
a word would normally be capitalized mid-sentence, like Africa. This applies
|
||||
to all UI text including menus, menu items, tool-tips, button text and label
|
||||
text etc. e.g. "Check for updates" rather than "Check for Updates".
|
||||
We also capitalize Subsurface (NOTE: not SubSurface) when referring to the
|
||||
application itself.
|
||||
Abbreviations should end with a period, e.g. "temp." not "temp" for
|
||||
temperature
|
||||
Numerals in chemical formulae should use subscript characters e.g. O₂ not O2
|
||||
Partial pressures in Subsurface are, by convention, abbreviated with a single
|
||||
"p" rather than 2, as in pO₂ not ppO₂
|
||||
Where more than one term exists for something, please choose the one already
|
||||
in use within Subsurface e.g. Cylinder vs. Tank.
|
||||
|
||||
|
||||
* string manipulation
|
||||
|
||||
* user interface
|
||||
|
||||
In UI part of the code use of `QString` methods is preferred, see this pretty
|
||||
good guide in [`QString` documentation][1]
|
||||
|
||||
* core components
|
||||
|
||||
In the core part of the code, C-string should be used.
|
||||
C-string manipulation is not always straightforward specifically when
|
||||
it comes to memory allocation, a set of helper functions has been developed
|
||||
to help with this. Documentation and usage examples can be found in
|
||||
[core/membuffer.h][2]
|
||||
|
||||
## Sample Settings
|
||||
|
||||
### Emacs
|
||||
|
||||
These lines in your `.emacs` file should get you fairly close when it comes
|
||||
to indentation – many of the other rules you have to follow manually
|
||||
|
||||
```
|
||||
;; indentation
|
||||
(defun c-lineup-arglist-tabs-only (ignored)
|
||||
"Line up argument lists by tabs, not spaces"
|
||||
(let* ((anchor (c-langelem-pos c-syntactic-element))
|
||||
(column (c-langelem-2nd-pos c-syntactic-element))
|
||||
(offset (- (1+ column) anchor))
|
||||
(steps (floor offset c-basic-offset)))
|
||||
(* (max steps 1)
|
||||
c-basic-offset)))
|
||||
|
||||
(add-hook 'c-mode-common-hook
|
||||
(lambda ()
|
||||
;; Add kernel style
|
||||
(c-add-style
|
||||
"linux-tabs-only"
|
||||
'("linux" (c-offsets-alist
|
||||
(arglist-cont-nonempty
|
||||
c-lineup-gcc-asm-reg
|
||||
c-lineup-arglist-tabs-only))))))
|
||||
|
||||
(add-hook 'c-mode-hook
|
||||
(lambda ()
|
||||
(let ((filename (buffer-file-name)))
|
||||
;; Enable kernel mode for the appropriate files
|
||||
(setq indent-tabs-mode t)
|
||||
(c-set-style "linux-tabs-only"))))
|
||||
|
||||
(add-hook 'c++-mode-hook
|
||||
(lambda ()
|
||||
(let ((filename (buffer-file-name)))
|
||||
;; Enable kernel mode for the appropriate files
|
||||
(setq indent-tabs-mode t)
|
||||
(c-set-style "linux-tabs-only"))))
|
||||
```
|
||||
|
||||
### QtCreator
|
||||
|
||||
These settings seem to get indentation right in QtCreator. Making TAB
|
||||
always adjust indent makes it hard to add hard tabs before '\' when
|
||||
creating continuing lines. Copying a tab with your mouse / ctrl-C and
|
||||
inserting it with ctrl-V seems to work around that problem (use Command
|
||||
instead of ctrl on your Mac)
|
||||
Save this XML code below to a file, open Preferences (or Tools->Options)
|
||||
in QtCreator, pick C++ in the left column and then click on Import...
|
||||
to open the file you just created. Now you should have a "Subsurface"
|
||||
style that you can select which should work well for our coding style.
|
||||
|
||||
```
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorCodeStyle>
|
||||
<!-- Written by QtCreator 3.0.0, 2014-02-27T07:52:57. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>CodeStyleData</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="AlignAssignments">false</value>
|
||||
<value type="bool" key="AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="BindStarToIdentifier">true</value>
|
||||
<value type="bool" key="BindStarToLeftSpecifier">false</value>
|
||||
<value type="bool" key="BindStarToRightSpecifier">false</value>
|
||||
<value type="bool" key="BindStarToTypeName">false</value>
|
||||
<value type="bool" key="ExtraPaddingForConditionsIfConfusingAlign">false</value>
|
||||
<value type="bool" key="IndentAccessSpecifiers">false</value>
|
||||
<value type="bool" key="IndentBlockBody">true</value>
|
||||
<value type="bool" key="IndentBlockBraces">false</value>
|
||||
<value type="bool" key="IndentBlocksRelativeToSwitchLabels">false</value>
|
||||
<value type="bool" key="IndentClassBraces">false</value>
|
||||
<value type="bool" key="IndentControlFlowRelativeToSwitchLabels">true</value>
|
||||
<value type="bool" key="IndentDeclarationsRelativeToAccessSpecifiers">true</value>
|
||||
<value type="bool" key="IndentEnumBraces">false</value>
|
||||
<value type="bool" key="IndentFunctionBody">true</value>
|
||||
<value type="bool" key="IndentFunctionBraces">false</value>
|
||||
<value type="bool" key="IndentNamespaceBody">false</value>
|
||||
<value type="bool" key="IndentNamespaceBraces">false</value>
|
||||
<value type="int" key="IndentSize">8</value>
|
||||
<value type="bool" key="IndentStatementsRelativeToSwitchLabels">true</value>
|
||||
<value type="bool" key="IndentSwitchLabels">false</value>
|
||||
<value type="int" key="PaddingMode">2</value>
|
||||
<value type="bool" key="SpacesForTabs">false</value>
|
||||
<value type="int" key="TabSize">8</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>DisplayName</variable>
|
||||
<value type="QString">Subsurface</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
```
|
||||
|
||||
### Vim
|
||||
|
||||
As everybody knows vim is a way better editor than emacs and thus needs to be
|
||||
in this file too. Put this into your `.vimrc` and this should produce something
|
||||
close to our coding standards.
|
||||
|
||||
```
|
||||
" Subsurface coding style
|
||||
filetype plugin indent on
|
||||
filetype detect
|
||||
set cindent tabstop=8 shiftwidth=8 cinoptions=l1,:0,(0,g0
|
||||
" TODO: extern "C" gets indented
|
||||
|
||||
" And some sane defaults, optional, but quite nice
|
||||
set nocompatible
|
||||
syntax on
|
||||
colorscheme default
|
||||
set hls
|
||||
set is
|
||||
|
||||
" The default blue is just impossible to see on a black terminal
|
||||
highlight Comment ctermfg=Brown
|
||||
|
||||
" clearly point out when someone have trailing spaces
|
||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||
|
||||
" Show trailing whitespace and spaces before a tab:
|
||||
match ExtraWhitespace /\s\+$\| \+\ze\t/
|
||||
```
|
||||
|
||||
[1]: http://doc.qt.io/qt-5/qstring.html#manipulating-string-data
|
||||
[2]: https://github.com/Subsurface/subsurface/blob/master/core/membuffer.h
|
||||
122
CONTRIBUTING.md
@ -1,122 +0,0 @@
|
||||
# Contributing to Subsurface
|
||||
|
||||
## Ways to Contribute
|
||||
|
||||
There are many ways in which you can contribute. We are always looking for testers who are willing to test the code while it is being developed. We especially need people running Windows and Mac (as the majority of the active developers are Linux people). We are also always looking for volunteers who help reviewing and improving the documentation. And very importantly we are looking for translators willing to translate the software into different languages. Our translations are centrally handled at [Transifex][4] – please sign up for an account there and then request to join the [Subsurface Team][5].
|
||||
|
||||
If you would like to contribute financially to help us cover the cost of running a free cloud synchronisation service for dive logs, you can do so by sponsoring this project.
|
||||
|
||||
|
||||
## Joining the Subsurface Contributors' Community
|
||||
|
||||
To get 'into the loop' for what is going on in Subsurface you should join our [mailing list][1], and start watching the [subsurface/subsurface repository on GitHub][2]. Conversation in the mailing list is in English – even though Subsurface itself and the website and documentation are available in many languages, the shared language the contributors communicate in is English. Actually "Broken English" is just fine… :-)
|
||||
|
||||
Of course it is also a good idea to join our [User Forum][3], to be able to see feedback and bug reports from our users.
|
||||
|
||||
|
||||
## Tips for Code Contributions
|
||||
|
||||
### Code Change Submissions
|
||||
|
||||
If you would like to contribute patches that fix bugs or add new features, that is of course especially welcome. If you are looking for places to start, look at the open bugs in our [bug tracker][6].
|
||||
|
||||
Here is a very brief introduction on creating commits that you can either send as [pull requests][7] on our main GitHub repository or send as emails to the mailing list. Much more details on how to use Git can be found at the [Git user manual][8].
|
||||
|
||||
Start with getting the latest source.
|
||||
|
||||
cd subsurface
|
||||
git checkout master
|
||||
git pull
|
||||
|
||||
ok, now we know you're on the latest version. Create a working branch to keep your development in:
|
||||
|
||||
git checkout -b devel
|
||||
|
||||
Edit the code (or documentation), compile, test… then create a commit:
|
||||
|
||||
git commit -s -a
|
||||
|
||||
Depending on your OS this will open a default editor – usually you can define which by setting the environment variable `GIT_EDITOR`. Here you enter your commit message. The first line is the title of your commit. Keep it brief and to the point. Then a longer explanation (more on this and the fact that we insist on all contributions containing a Signed-off-by: line below).
|
||||
|
||||
If you want to change the commit message, `git commit --amend` is the way to go. Feel free to break your changes into multiple smaller commits. Then, when you are done there are two directions to go, which one you find easier depends a bit on how familiar you are with GitHub. You can either push your branch to GitHub and create a [pull requests on GitHub][7], or you run:
|
||||
|
||||
git format-patch master..devel
|
||||
|
||||
Which creates a number of files that have names like `0001-Commit-title.patch`, which you can then send to our developer mailing list.
|
||||
|
||||
|
||||
### Developer Certificate of Origin (DCO)
|
||||
|
||||
When sending code, please either send signed-off patches or a pull request with signed-off commits. If you don't sign off on them, we will not accept them. This means adding a line that says "Signed-off-by: Name \<Email\>" at the end of each commit, indicating that you wrote the code and have the right to pass it on as an open source patch.
|
||||
|
||||
See: [Signed-off-by Lines][9]
|
||||
|
||||
|
||||
### Commit Messages
|
||||
|
||||
Also, please write good Git commit messages. A good commit message looks like this:
|
||||
|
||||
Header line: explaining the commit in one line
|
||||
|
||||
Body of commit message is a few lines of text, explaining things
|
||||
in more detail, possibly giving some background about the issue
|
||||
being fixed, etc etc.
|
||||
|
||||
The body of the commit message can be several paragraphs, and
|
||||
please do proper word-wrap and keep columns shorter than about
|
||||
74 characters or so. That way "git log" will show things
|
||||
nicely even when it's indented.
|
||||
|
||||
Reported-by: whoever-reported-it
|
||||
Signed-off-by: Your Name <you@example.com>
|
||||
|
||||
That header line really should be meaningful, and really should be just one line. The header line is what is shown by tools like gitk and shortlog, and should summarize the change in one readable line of text, independently of the longer explanation.
|
||||
|
||||
The preferred way to write a commit message is using [imperative mood][12], e.g. "Make foo do xyz" instead of "This patch makes foo do xyz" or "I made foo do xyz", as if you are giving commands or requests to the code base.
|
||||
|
||||
![gitk sample][10]
|
||||
|
||||
_Example with gitk_
|
||||
|
||||
|
||||
### Changelog
|
||||
|
||||
Additionally when important changes to behaviors, fixes or new feature are introduced an entry must be added to `CHANGELOG.md` file. Always add new entries at the very top of the file above other existing entries. Use this layout for new entries:
|
||||
|
||||
Area: Details about the change [reference thread / issue]
|
||||
|
||||
When multiple areas are affected list the areas separated with a /:
|
||||
|
||||
Area1/Area2: Detail about the change [reference thread / issue]
|
||||
|
||||
Here is a (non exhaustive) list of Areas that can be used:
|
||||
|
||||
* Bluetooth
|
||||
* Cloud-storage
|
||||
* Desktop
|
||||
* Dive pictures
|
||||
* Import
|
||||
* Libdivecomputer
|
||||
* Map-widget
|
||||
* Mobile
|
||||
* Planner
|
||||
* Printing
|
||||
* Profile
|
||||
|
||||
|
||||
### Coding Style
|
||||
|
||||
In order to make reviews simpler and have contributions merged faster in the code base, please follow Subsurface project's coding style and coding conventions described in the [CodingStyle][11] file.
|
||||
|
||||
[1]: http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
|
||||
[2]: https://github.com/subsurface/subsurface
|
||||
[3]: https://groups.google.com/g/subsurface-divelog
|
||||
[4]: https://www.transifex.com/
|
||||
[5]: https://explore.transifex.com/subsurface/subsurface/
|
||||
[6]: https://github.com/Subsurface/subsurface/issues
|
||||
[7]: https://github.com/Subsurface/subsurface/pulls
|
||||
[8]: https://www.kernel.org/pub/software/scm/git/docs/user-manual.html
|
||||
[9]: https://gerrit-review.googlesource.com/Documentation/user-signedoffby.html
|
||||
[10]: https://github.com/subsurface/subsurface/Documentation/images/Screenshot-gitk-subsurface-1.png "Example with gitk"
|
||||
[11]: https://github.com/Subsurface/subsurface/blob/master/CODINGSTYLE.md
|
||||
[12]: https://en.wikipedia.org/wiki/Imperative_mood
|
||||
272
CodingStyle
Normal file
@ -0,0 +1,272 @@
|
||||
Coding Style
|
||||
============
|
||||
|
||||
Here are some of the basics that we are trying to enforce for our coding
|
||||
style. The existing code (as of the commit that adds these lines) is not
|
||||
yet fully consistent to these rules, but following these rules will make
|
||||
sure that no one yells at you about your patches.
|
||||
|
||||
We have a script that can be used to reformat code to be reasonably close
|
||||
to these rules; it's in scripts/whitespace.pl - this script requires
|
||||
clang-format to be installed (which sadly isn't installed by default on
|
||||
any of our platforms; even on Mac where clang is the default compiler).
|
||||
|
||||
At the end of this file are some ideas for your .emacs file (if that's
|
||||
your editor of choice) as well as for QtCreator. If you have settings for
|
||||
other editors that implement this coding style, please add them here.
|
||||
|
||||
Basic rules
|
||||
===========
|
||||
|
||||
- all indentation is tabs (set to 8 char) with the exception of
|
||||
continuation lines that are alligned with tabs and then spaces
|
||||
|
||||
- all keywords followed by a '(' have a space in between
|
||||
|
||||
if (condition)
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
|
||||
- function calls do NOT have a space between their name and argument
|
||||
|
||||
i = some_function(argument);
|
||||
|
||||
- usually there is no space on the inside of parenthesis (see examples
|
||||
above)
|
||||
|
||||
- function / method implementations have their opening curly braces in
|
||||
column 1
|
||||
|
||||
- all other opening curly braces follow at the end of the line, with a
|
||||
space separating them:
|
||||
|
||||
if (condition) {
|
||||
dosomething();
|
||||
dosomethingelse();
|
||||
}
|
||||
|
||||
- both sides of an if / else clause either use or do not use curly braces:
|
||||
|
||||
if (condition)
|
||||
i = 4;
|
||||
else
|
||||
j = 6;
|
||||
|
||||
if (condition) {
|
||||
i = 6;
|
||||
} else {
|
||||
i = 4;
|
||||
j = 6;
|
||||
}
|
||||
|
||||
- use space to make visual separation easier
|
||||
|
||||
a = b + 3 + e / 4;
|
||||
|
||||
- continuation lines have the operator / comma at the end
|
||||
|
||||
if (very_long_conditiont_1 ||
|
||||
condition_2)
|
||||
|
||||
b = a + (c + d +
|
||||
f + z);
|
||||
|
||||
- in a C++ constructor initialization list, the colon is on the same line and
|
||||
continuation lines are aligned as the rule above:
|
||||
|
||||
ClassName::ClassName() : x(1),
|
||||
y(2),
|
||||
z(3)
|
||||
{
|
||||
}
|
||||
|
||||
- unfortunate inconsistency:
|
||||
-- C code usually uses underscores to structure names
|
||||
|
||||
variable_in_C
|
||||
|
||||
-- C++ code usually uses camelCase
|
||||
|
||||
variableInCPlusPlus
|
||||
|
||||
where the two meet, use your best judgment and go for best consistency
|
||||
(i.e., where does the variable "originate")
|
||||
|
||||
- switch statements with blocks are a little bit special (to avoid indenting
|
||||
too far)
|
||||
|
||||
switch (foo) {
|
||||
case FIRST:
|
||||
whatever();
|
||||
break;
|
||||
case SECOND: {
|
||||
int i;
|
||||
for (i = 0; i < 5; i++)
|
||||
do_something(i);
|
||||
}
|
||||
}
|
||||
|
||||
- variable declarations
|
||||
in C code we really like them to be at the beginning of a code block,
|
||||
not interspersed in the middle.
|
||||
in C++ we are a bit less strict about this - but still, try not to go
|
||||
crazy.
|
||||
|
||||
- text strings
|
||||
The default language of subsurface is US English so please use US English
|
||||
spelling and terminology.
|
||||
Where at all possible strings should be passed to the tr() function to enable
|
||||
translation into other languages.
|
||||
|
||||
-- like this
|
||||
QString msgTitle = tr("Submit user survey.");
|
||||
|
||||
-- rather than
|
||||
QString msgTitle = "Submit user survey.";
|
||||
|
||||
|
||||
- UI text style
|
||||
These guidleines are designed to ensure consitency in presentation within
|
||||
Subsurface.
|
||||
Only the first word of multi-word text strings should be captalized unless
|
||||
a word would normally be capitalized mid-sentance, like Africa. This applies
|
||||
to all UI text including menus, menu items, tool-tips, button text and label
|
||||
text etc. e.g. "Check for updates" rather than "Check for Updates".
|
||||
We also captialize Subsurface (NOTE: not SubSurface) when referring to the
|
||||
application itself.
|
||||
Abbreviations should end with a period, e.g. "temp." not "temp" for
|
||||
temperature
|
||||
Numerals in chemical formulae should use subscript characters e.g. O₂ not O2
|
||||
Partial pressures in Subsurface are, by convention, abbreviated with a single
|
||||
"p" rather than 2, as in pO₂ not ppO₂
|
||||
Where more than one term exists for something, please choose the one already
|
||||
in use within Subsurface e.g. Cylinder vs. Tank.
|
||||
|
||||
|
||||
Sample Settings
|
||||
===============
|
||||
|
||||
Emacs
|
||||
-----
|
||||
|
||||
These lines in your .emacs file should get you fairly close when it comes
|
||||
to indentation - many of the other rules you have to follow manually
|
||||
|
||||
;; indentation
|
||||
(defun c-lineup-arglist-tabs-only (ignored)
|
||||
"Line up argument lists by tabs, not spaces"
|
||||
(let* ((anchor (c-langelem-pos c-syntactic-element))
|
||||
(column (c-langelem-2nd-pos c-syntactic-element))
|
||||
(offset (- (1+ column) anchor))
|
||||
(steps (floor offset c-basic-offset)))
|
||||
(* (max steps 1)
|
||||
c-basic-offset)))
|
||||
|
||||
(add-hook 'c-mode-common-hook
|
||||
(lambda ()
|
||||
;; Add kernel style
|
||||
(c-add-style
|
||||
"linux-tabs-only"
|
||||
'("linux" (c-offsets-alist
|
||||
(arglist-cont-nonempty
|
||||
c-lineup-gcc-asm-reg
|
||||
c-lineup-arglist-tabs-only))))))
|
||||
|
||||
(add-hook 'c-mode-hook
|
||||
(lambda ()
|
||||
(let ((filename (buffer-file-name)))
|
||||
;; Enable kernel mode for the appropriate files
|
||||
(setq indent-tabs-mode t)
|
||||
(c-set-style "linux-tabs-only"))))
|
||||
|
||||
(add-hook 'c++-mode-hook
|
||||
(lambda ()
|
||||
(let ((filename (buffer-file-name)))
|
||||
;; Enable kernel mode for the appropriate files
|
||||
(setq indent-tabs-mode t)
|
||||
(c-set-style "linux-tabs-only"))))
|
||||
|
||||
|
||||
QtCreator
|
||||
---------
|
||||
|
||||
These settings seem to get indentation right in QtCreator. Making TAB
|
||||
always adjust indent makes it hard to add hard tabs before '\' when
|
||||
creating continuing lines. Copying a tab with your mouse / ctrl-C and
|
||||
inserting it with ctrl-V seems to work around that problem (use Command
|
||||
instead of ctrl on your Mac)
|
||||
Save this XML code below to a file, open Preferences (or Tools->Options)
|
||||
in QtCreator, pick C++ in the left column and then click on Import...
|
||||
to open the file you just created. Now you should have a "Subsurface"
|
||||
style that you can select which should work well for our coding style.
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorCodeStyle>
|
||||
<!-- Written by QtCreator 3.0.0, 2014-02-27T07:52:57. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>CodeStyleData</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="AlignAssignments">false</value>
|
||||
<value type="bool" key="AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="BindStarToIdentifier">true</value>
|
||||
<value type="bool" key="BindStarToLeftSpecifier">false</value>
|
||||
<value type="bool" key="BindStarToRightSpecifier">false</value>
|
||||
<value type="bool" key="BindStarToTypeName">false</value>
|
||||
<value type="bool" key="ExtraPaddingForConditionsIfConfusingAlign">false</value>
|
||||
<value type="bool" key="IndentAccessSpecifiers">false</value>
|
||||
<value type="bool" key="IndentBlockBody">true</value>
|
||||
<value type="bool" key="IndentBlockBraces">false</value>
|
||||
<value type="bool" key="IndentBlocksRelativeToSwitchLabels">false</value>
|
||||
<value type="bool" key="IndentClassBraces">false</value>
|
||||
<value type="bool" key="IndentControlFlowRelativeToSwitchLabels">true</value>
|
||||
<value type="bool" key="IndentDeclarationsRelativeToAccessSpecifiers">true</value>
|
||||
<value type="bool" key="IndentEnumBraces">false</value>
|
||||
<value type="bool" key="IndentFunctionBody">true</value>
|
||||
<value type="bool" key="IndentFunctionBraces">false</value>
|
||||
<value type="bool" key="IndentNamespaceBody">false</value>
|
||||
<value type="bool" key="IndentNamespaceBraces">false</value>
|
||||
<value type="int" key="IndentSize">8</value>
|
||||
<value type="bool" key="IndentStatementsRelativeToSwitchLabels">true</value>
|
||||
<value type="bool" key="IndentSwitchLabels">false</value>
|
||||
<value type="int" key="PaddingMode">2</value>
|
||||
<value type="bool" key="SpacesForTabs">false</value>
|
||||
<value type="int" key="TabSize">8</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>DisplayName</variable>
|
||||
<value type="QString">Subsurface</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
|
||||
|
||||
Vim
|
||||
---------
|
||||
|
||||
As everybody knows vim is a way better editor than emacs and thus needs to be
|
||||
in this file too. Put this into your .vimrc and this should produce something
|
||||
close to our coding standards.
|
||||
|
||||
" Subsurface coding style
|
||||
filetype plugin indent on
|
||||
filetype detect
|
||||
set cindent tabstop=8 shiftwidth=8 cinoptions=l1,:0,(0,g0
|
||||
" TODO: extern "C" gets indented
|
||||
|
||||
" And some sane defaults, optional, but quite nice
|
||||
set nocompatible
|
||||
syntax on
|
||||
colorscheme default
|
||||
set hls
|
||||
set is
|
||||
|
||||
" The default blue is just impossible to see on a black terminal
|
||||
highlight Comment ctermfg=Brown
|
||||
|
||||
" clearly point out when someone have trailing spaces
|
||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||
|
||||
" Show trailing whitespace and spaces before a tab:
|
||||
match ExtraWhitespace /\s\+$\| \+\ze\t/
|
||||
9283
Documentation/50-pot/subsurface-manual.pot
Normal file
268
Documentation/FAQ.wordpress
Normal file
@ -0,0 +1,268 @@
|
||||
<!-- when editing please don't break the formatting... WordPress is a bit silly about this
|
||||
- I need the empty lines after the [expand...] and before the [/expand]
|
||||
- Every paragraph is a single line (how stupid is that!) with an empty line in between -->
|
||||
<h2>Here are some Frequently Asked Questions by our users</h2>
|
||||
<span class="expandall">Expand All</span> --- <span class="collapseall">Collapse All</span>
|
||||
[expand title="Which operating system does Subsurface support?"]
|
||||
|
||||
Subsurface runs on Windows (32 and 64bit, Windows XP and newer), MacOS (Intel, 10.7 and newer) and many flavors of Linux. We provide Linux packages for Ubuntu, Linux Mint, Debian, openSUSE and Fedora. Details on where to find Subsurface for your OS are on our <a title="Downloads" href="http://subsurface-divelog.org/download/">Downloads</a> page.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I install Subsurface on Windows?"]
|
||||
|
||||
<a href="http://subsurface-divelog.org/download/">Download the installer</a> and double-click on it. You will get a warning that the installer is from an unknown publisher. Please click Yes to allow installation. Next you are presented with the license for Subsurface, after that you can choose where you would like to install Subsurface (the default should be reasonable in most cases) and the <em>Start Menu Folder</em> where a shortcut to call Subsurface and an entry to uninstall Subsurface will be installed.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I install Subsurface on MacOS?"]
|
||||
|
||||
<a href="http://subsurface-divelog.org/download/">Download the installer DMG</a> and open it. Drag the Subsurface icon on to the Applications icon.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I install Subsurface on Ubuntu?"]
|
||||
|
||||
Simply add the following PPA to your system:
|
||||
<pre><code style="font-size: 8pt;">ppa:subsurface/subsurface</code></pre>
|
||||
[/expand]
|
||||
[expand title="How do I install Subsurface on Debian?"]
|
||||
|
||||
We currently only support Debian Jessie; you need to add the Ubuntu repository:
|
||||
<pre><code style="font-size: 8pt;">echo "deb http://ppa.launchpad.net/subsurface/subsurface/ubuntu trusty main" \
|
||||
| sudo tee /etc/apt/sources.lists.d/subsurface.list
|
||||
gpg --keyserver subkeys.pgp.net --recv-keys A8BC9756EE61D9C6
|
||||
gpg -a --export A8BC9756EE61D9C6 | sudo apt-key add -
|
||||
sudo apt-get update</code></pre>
|
||||
Now you can install Subsurface from that repository:
|
||||
<pre><code style="font-size: 8pt;">sudo apt-get install subsurface</code></pre>
|
||||
Make sure you are getting a current version with all its Qt5 dependencies.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I install Subsurface on openSUSE?"]
|
||||
|
||||
Go to <a href="http://software.opensuse.org/download.html?project=home:Subsurface-Divelog&package=subsurface">our build service project page</a> and follow the simple instructions there -- it’s as easy as two clicks.
|
||||
|
||||
[/expand]
|
||||
[expand title="The shortcut keys don't work on Ubuntu"]
|
||||
|
||||
Please uninstall <code style="font-size: 9pt;">appmenu-qt5</code> and the shortcuts will work.
|
||||
|
||||
[/expand]
|
||||
[expand title="How can I post my dive on Facebook?"]
|
||||
|
||||
Go to the preferences and select the Facebook section. There you can log in to your Facebook account. You have to do this every time you want to post to Facebook, for privacy reasons Subsurface does not stay logged in to Facebook between sessions.
|
||||
|
||||
Once you are logged into Facebook you can close the preferences. You will now see a Facebook button next to the Notes section towards the center of the Subsurface window. Clicking on that opens a dialog that allows you to control which parts of the current dive are posted to your timeline. The post is always "private" - you need to connect to Facebook and change the audience for that post in order for others to see it (we do this so you get to review what is posted before it becomes public).
|
||||
|
||||
[/expand]
|
||||
[expand title="How can I post my dives on the web?"]
|
||||
|
||||
Currently Subsurface integrates with two different online logbooks: <a href="http://divelogs.de">divelogs.de</a> and <a href="http://dive-share.appspot.com/">DiveShare</a>. You can export dives to either of those two services from the File➝Export menu.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I use the companion apps?"]
|
||||
|
||||
There are companion apps available for both Android and IOS. You can find them in the respective stores. Once you install them on your mobile device you can either mark dive sites and name them (e.g., right before or after a dive), or you can run a "service" in the background that periodically records your position. Don't forget to turn the service off when you are done as it may increase your battery consumption.
|
||||
|
||||
Once you have uploaded the dive site data from the companion app to our web service, you can then download the data from within Subsurface. Do this <em>after</em> you have downloaded the dives from that day from your divecomputer (or manually added the dives) so that Subsurface can match the dive data (and their time stamps) with the data stored by the companion app. Subsurface will then add GPS data to those dives that didn't have GPS information and are reasonably close in time to to markers saved by the companion app.
|
||||
|
||||
Please note that the companion apps by themselves do <em>not</em> add dives to your dive list. The dive needs to exist before GPS data is added to it.
|
||||
|
||||
[/expand]
|
||||
[expand title="How can I use more than one tank with the same gas?"]
|
||||
|
||||
This is a typical question for side mount divers or some tec divers. Subsurface supports having more than one tank with the same gas, even if some dive computers don't. Simply add a gas change to your second tank of the same gas as both tanks will be included in the gas use calculations. In order to add gas changes simply right-click on the profile at the appropriate spot and you will be offered to add such an event.
|
||||
|
||||
[/expand]
|
||||
[expand title="Why is Subsurface not able to download my dives?"]
|
||||
|
||||
Clean the contacts. Clean the contacts again. Make sure the connector is firmly connected. Wiggle it. Seriously. Make sure the dive computer is in transfer mode (this isn't necessary for all dive computers but for many common ones). Check with other software that the download works in general. Try another cable. See our user manual for pairing with BT and the general use case.
|
||||
|
||||
[/expand]
|
||||
[expand title="Why is the CSV import failing?"]
|
||||
|
||||
The CSV import has a couple of caveats. You should avoid some special characters like ampersand (&), less than (<), greater than (>) and double quotes ("), the latter if quoting text cells. The file should use UTF-8 character set, if having non-ASCII characters. Also the size of the CSV file might cause problems. Importing 100 dives at a time (without dive profile) has worked previously, but larger files might exceed limits of the parser used. When having problems with CSV imports, try first with a smaller sample to make sure everything works.
|
||||
|
||||
[/expand]
|
||||
[expand title="How can I use Subsurface for multiple users?"]
|
||||
|
||||
Store logs of different users to separate log files. From Subsurface, you can open individual files for different divers and multiple users are supported quite well.
|
||||
|
||||
[/expand]
|
||||
[expand title="How can I load pictures and associate them with my dive?"]
|
||||
|
||||
Select the dives you want to load and associate the pictures with. Then right click on one of the selected dives and select "Load images" from the
|
||||
popup menu. This will bring in a file selection dialog where you can select one or multiple pictures. When the selection is done and you hit Open, you get a new dialog where you can shift the times of the images. This is described in more detail in our user manual.
|
||||
|
||||
If you are having trouble with loading the images, check that you have at least one of the following tags in the Exif headers DateTimeOriginal or
|
||||
DateTime. We take the time from these fields to detect if the image was shot during the dive or not. If the picture is edited, you should store the original Exif information on the new/edited image for it to be loaded properly.
|
||||
|
||||
[/expand]
|
||||
[expand title="Can I import my dives from my old log software?"]
|
||||
|
||||
Many common programs are already supported and we are always happy to try to add new ones. If your old log software supports exporting the log book, we might well be able to import that (for example via CSV files or UDDF). However, usually support for importing the native format will help you to get more complete information into Subsurface. To implement support for the log format, we will need a sample log file. It would be great to have also a screenshot from the original log software or description of the dive that is shown on the sample log. Preferably we would like to have a reasonably simple dive to get basic support and another dive that has as many features enabled as possible (e.g. gas changes during the dive). Please post this information to the user forum or send it to the developer mailing list subsurface@subsurface-divelog.org. Unfortunately some of the log formats we have not been able to decipher (as some vendors have decided to encrypt their log files to increase the degree of lock-in of their customers), so there are no guarantees that this will bring support for your old log software, but it is worth a try.
|
||||
|
||||
[/expand]
|
||||
[expand title="Can you add support for dive computer X?"]
|
||||
|
||||
We support a large number of dive computers already and are always happy to add support for more. Please contact us via the user forums so we can try to help. Some vendors have actively helped us in our work and adding support for new models from those vendors is usually easy. Other vendors are more neutral, some are actively hostile. Without help from the vendor it can be rather challenging to reverse engineer the transfer protocol and the dive encoding, but with sufficient help from you it is often possible to do so.
|
||||
|
||||
A good starting point is often to send us a libdivecomputer log and dump (you can pick those in the dive computer download dialog) when connecting to the dive computer using a similar existing model (if possible).
|
||||
|
||||
[/expand]
|
||||
[expand title="Is there a virus in the Subsurface installer?"]
|
||||
|
||||
If you get a warning message or if Subsurface is blocked by your anti virus software, that is almost certainly a false positive. Subsurface is not built on a Windows machine, it is cross built from source on Linux on a well maintained and clean server.
|
||||
|
||||
Most/all Windows AV software packages support an "add exception" feature, which skips an executable from being scanned. Try adding Subsurface to the list of non-harmful software. If the Subsurface installer download is detected as malware, please temporary disable your AV software until Subsurface is installed
|
||||
|
||||
In either case, please inform your AV software vendor of a "false positive" as we assure your that Subsurface is not malware
|
||||
|
||||
[/expand]
|
||||
[expand title="I cannot download all my dives, only the most recent ones even though my dive computer's manual states that it records history of e.g. 999 dives."]
|
||||
|
||||
Dive history is different than the dive profiles on the log. The history only keeps track of the total number of dives and total amount of time spent below surface. The logs, on the other hand, store the dive profile, but they have limited amount of memory to do so. The exact amount of dive profiles that can be stored on the device depend on sample interval and duration of the dives. Once the memory is full the oldest dives get overwritten with new dives. Thus we are only able to download the last 13, 30 or 199 dives.
|
||||
|
||||
If you have downloaded your dives to different dive logging software before they were overwritten, there is a high change that Subsurface can import these. However, if the logs are only on your dive computer, they cannot be salvaged after being over written by new dives.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I download dives from my Shearwater Petrel 2 (or other Bluetooth dive computer) on Linux?"]
|
||||
|
||||
Setting up a connection to download dives from your Bluetooth-enabled device, such as the Shearwater Petrel, is not yet an automated process and will generally require the command prompt. It is essentially a three step process.
|
||||
|
||||
<ol>
|
||||
<li>Enable Bluetooth controller and pair your dive computer</li>
|
||||
<li>Establish an RFCOMM connection</li>
|
||||
<li>Download the dives with Subsurface</li>
|
||||
</ol>
|
||||
|
||||
Users have reported difficulties with some Bluetooth controllers. If you have an onboard controller, try that first. It is simplest if you remove any USB Bluetooth dongles. If you have a USB dongle that came with your dive computer, try that before any others.
|
||||
|
||||
Make sure you know how to put your dive computer into upload mode. On the Shearwater Petrel, Petrel 2 and Nerd, cycle through the menu, select 'Dive Log', then 'Upload Log'. The display will read 'Initializing', then 'Wait PC 3:00' and will countdown. Once the connection is established, the display reads 'Wait CMD ...' and the countdown continues. When downloading the dive from Subsurface, the display reads 'Sending' then 'Sent Dive'.
|
||||
|
||||
To establish the connection you need to have root access through sudo or su, and you will need to have the correct permissions on your system to download the dives. On Fedora 22 and probably most other systems, this means becoming a member of the dialout group if you are not already. This can be done graphically, or on the command terminal, enter:
|
||||
<pre><code style="font-size: 8pt;">sudo usermod -a -G dialout username</code></pre>
|
||||
Log out and log in for the change to take effect.
|
||||
|
||||
<em>Enabling the Bluetooth controller and pairing your dive computer</em>
|
||||
You may be able to set up the Bluetooth controller and pair your dive computer using your distros graphical environment. Once you've set your dive computer to upload mode, click the Bluetooth icon in the system tray and selecting 'Add new device'. Your dive computer should appear. If asked for a password, enter 0000. Write down or copy the MAC address of your dive computer - you'll need this later. It should be in the form 00:11:22:33:44:55.
|
||||
|
||||
If the graphical method didn't work, you need to pair the device from the command line. Open a terminal and use hciconfig to check the Bluetooth controller status
|
||||
<pre><code style="font-size: 8pt;">hciconfig
|
||||
hci0: Type: BR/EDR Bus: USB
|
||||
BD Address: 01:23:45:67:89:AB ACL MTU: 310:10 SCO MTU: 64:8
|
||||
DOWN
|
||||
RX bytes:504 acl:0 sco:0 events:22 errors:0
|
||||
TX bytes:92 acl:0 sco:0 commands:21 errors:0</code></pre>
|
||||
This tells you you have one controller, with MAC address 01:23:45:67:89:AB, connected as hci0. Its status is 'DOWN', i.e. not powered. Additional controllers will appear as hci1, etc. If you didn't have a Bluetooth dongle plugged in when you booted your computer, hci0 is probably the onboard. We need to power on the controller and enable authentication:
|
||||
<pre><code style="font-size: 8pt;">sudo hciconfig hci0 up auth
|
||||
(enter password when prompted)
|
||||
hciconfig
|
||||
hci0: Type: BR/EDR Bus: USB
|
||||
BD Address: 01:23:45:67:89:AB ACL MTU: 310:10 SCO MTU: 64:8
|
||||
UP RUNNING PSCAN AUTH
|
||||
RX bytes:1026 acl:0 sco:0 events:47 errors:0
|
||||
TX bytes:449 acl:0 sco:0 commands:46 errors:0</code></pre>
|
||||
Check that the status now includes 'UP', 'RUNNING' AND 'AUTH'
|
||||
|
||||
If there are multiple controllers running, it's easiest if you turn off the controller(s) you don't plan to use. E.g.
|
||||
<pre><code style="font-size: 8pt;">sudo hciconfig hci1 down</code></pre>
|
||||
Next step is to 'trust' and 'pair' the dive computer. On distros with Bluez 5, such as Fedora 22, you can use a tool called blutootctl, which will bring up its own command prompt.
|
||||
<pre><code style="font-size: 8pt;">bluetoothctl
|
||||
[NEW] Controller 01:23:45:67:89:AB localhost.localdomain [default]
|
||||
[bluetooth]# agent on
|
||||
Agent registered
|
||||
[bluetooth]# default-agent
|
||||
Default agent request successful
|
||||
[bluetooth]# scan on <----now set your dive computer to upload mode
|
||||
Discovery started
|
||||
[CHG] Controller 01:23:45:67:89:AB Discovering: yes
|
||||
[NEW] Device 00:11:22:33:44:55 Petrel
|
||||
[bluetooth]# trust 00:11:22:33:44:55 <----you can use the tab key to autocomplete the MAC address
|
||||
[CHG] Device 00:11:22:33:44:55 Trusted: yes
|
||||
Changing 00:11:22:33:44:55 trust succeeded
|
||||
[bluetooth]# pair 00:11:22:33:44:55
|
||||
Attempting to pair with 00:11:22:33:44:55
|
||||
[CHG] Device 00:11:22:33:44:55 Connected: yes
|
||||
[CHG] Device 00:11:22:33:44:55 UUIDs: 00001101-0000-1000-8000-0089abc12345
|
||||
[CHG] Device 00:11:22:33:44:55 Paired: yes
|
||||
Pairing successful
|
||||
[CHG] Device 00:11:22:33:44:55 Connected: no</code></pre>
|
||||
If asked for a password, enter 0000. It's ok if the last line says 'Connected: no'. The important part is the line above, 'Pairing successful'.
|
||||
|
||||
If your system has Bluez version 4 (e.g. Ubuntu 12.04 through to 15.04), you probably don't have bluetoothctl, but do have a script called bluez-simple-agent or just simple-agent.
|
||||
<pre><code style="font-size: 8pt;">hcitool -i hci0 scanning
|
||||
Scanning ...
|
||||
00:11:22:33:44:55 Petrel
|
||||
bluez-simple-agent hci0 00:11:22:33:44:55</code></pre>
|
||||
Once you have paired your dive computer, you are ready to set up the RFCOMM connection
|
||||
|
||||
<em>Establishing the RFCOMM connection</em>
|
||||
The command to establish an RFCOMM connection is:
|
||||
<pre><code style="font-size: 8pt;">sudo rfcomm -i <controller> connect <dev> <bdaddr> [channel]</code></pre>
|
||||
<controller> is the Bluetooth controller, hci0
|
||||
<dev> is the RFCOMM device file, rfcomm0
|
||||
<bdaddr> is the dive computer's MAC address, 00:11:22:33:44:55
|
||||
[channel] is the dive computer's Bluetooth channel we need to connect to. If you omit it, channel 1 will be assumed. Based on a limited number of user reports, the channel for different dive computers is probably:
|
||||
<ul>
|
||||
<li>Shearwater Petrel 2: channel 5
|
||||
<li>Shearwater Nerd: channel 5
|
||||
<li>Shearwater Petrel 1: channel 1
|
||||
<li>OSTC Sport: Channel 1
|
||||
</ul>
|
||||
E.g. to connect a Shearwater Petrel 2, set the dive computer to upload mode and enter:
|
||||
<pre><code style="font-size: 8pt;">sudo rfcomm -i hci0 connect rfcomm0 00:11:22:33:44:55 5
|
||||
(enter password when prompted)
|
||||
Connected /dev/rfcomm0 to 00:11:22:33:44:55 on channel 5
|
||||
Press CTRL-C for hangup</code></pre>
|
||||
To connect a Shearwater Petrel 1 or OSTC Sport, set the dive computer to upload mode and enter:
|
||||
<pre><code style="font-size: 8pt;">sudo rfcomm -i hci0 connect rfcomm0 00:11:22:33:44:55
|
||||
(enter password when prompted)
|
||||
Connected /dev/rfcomm0 to 00:11:22:33:44:55 on channel 1
|
||||
Press CTRL-C for hangup</code></pre>
|
||||
If you don't know what channel your dive computer uses, or the channel in the list above doesn't work, the command 'sdptool records' should help determine the appropriate channel. The output below is from a Shearwater Petrel 2.
|
||||
<pre><code style="font-size: 8pt;">sdptool -i hci0 records 00:11:22:33:44:55
|
||||
Service Name: Serial Port
|
||||
Service RecHandle: 0x10000
|
||||
Service Class ID List:
|
||||
"Serial Port" (0x1101)
|
||||
Protocol Descriptor List:
|
||||
"L2CAP" (0x0100)
|
||||
"RFCOMM" (0x0003)
|
||||
Channel: 5</code></pre>
|
||||
If you have a Bluetooth dive computer not in the list above, or if the channel listed is not correct, please let the Subsurface developers know on the user forum or the developer mailing list subsurface@subsurface-divelog.org.
|
||||
|
||||
<em>Download the dives with Subsurface</em>
|
||||
After establishing the RFCOMM connection and while the dive computer's upload mode countdown is still running, go to Subsurface, select 'Import'->'Import from dive computer' and enter appropriate Vendor (e.g. Shearwater), Dive Computer (Petrel), Device or Mount Point (/dev/rfcomm0) and click 'Download'.
|
||||
|
||||
If you get a permissions error, you probably need to add yourself to the dialout group, logout and login again.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I fix permission errors when trying to download from my Atomics Aquatics Cobalt under Linux?"]
|
||||
|
||||
Sadly this is a somewhat difficult process on some versions of Linux. By default new devices are sometimes given permissions that prevent a regular user from accessing them. If you get a permission error when trying to download from a Cobalt or Cobalt 2 under Linux, please try these steps.
|
||||
|
||||
This should work on most Linux flavors. We'd appreciate feedback if this doesn't work for you. Open a terminal window and cut and paste the following command. It may ask you to enter your password in order to allow access as super user (which is required to set up the udev rule that changes the device permissions as you plug in your Cobalt).
|
||||
|
||||
<pre><code style="font-size: 8pt;">(MYGRP=$(id | sed "s/^.*gid=.*(\(.*\)) .*$/\1/") ; \
|
||||
echo -n 'SUBSYSTEM=="usb", ATTR{idVendor}=="0471", ATTR{idProduct}=="0888", MODE="0660", GROUP="' ; \
|
||||
echo -n $MYGRP ; echo '"') | sudo tee /etc/udev/rules.d/99-cobalt.rules </code></pre>
|
||||
|
||||
If you disconnect and reconnect your Cobalt it should now get the correct access permissions.
|
||||
|
||||
[/expand]
|
||||
[expand title="How do I fix permission errors when trying to download from my Suunto EON Steel under Linux?"]
|
||||
|
||||
By default new devices are sometimes given permissions that prevent a regular user from accessing them. If you get a permission error when trying to download from an EON Steel under Linux, please try these steps.
|
||||
|
||||
This should work on most Linux flavors. We'd appreciate feedback if this doesn't work for you. Open a terminal window and cut and paste the following command. It may ask you to enter your password in order to allow access as super user (which is required to set up the udev rule that changes the device permissions as you plug in your EON Steel).
|
||||
|
||||
<pre><code style="font-size: 8pt;">echo 'SUBSYSTEM=="usb",ATTR{idVendor}=="1493",ATTR{idProduct}=="0030", MODE="0666"' |
|
||||
sudo tee /etc/udev/rules.d/99-cobalt.rules </code></pre>
|
||||
|
||||
If you disconnect and reconnect your DC it should now get the correct access permissions.
|
||||
|
||||
[/expand]
|
||||
[expand title="Why is my IRDA based dive computer not working on a MAC?"]
|
||||
|
||||
Subsurface on the Mac does not currently support IRDA based dive computers. This is an issue of missing support libraries for us to use - other dive log software may have implemented their own IRDA stack on the Mac, we have not. Subsurface on Windows and Linux does support IRDA based dive computers just fine.
|
||||
|
||||
[/expand]
|
||||
@ -7,7 +7,7 @@
|
||||
# submitting patches to the user manual, only submit the changes to the .txt
|
||||
# file - the maintainer will recreate the .html.git file
|
||||
|
||||
DOCNAMES = user-manual user-manual_es user-manual_fr user-manual_nl mobile-manual-v3
|
||||
DOCNAMES = user-manual user-manual_es user-manual_fr user-manual_ru
|
||||
|
||||
HTMLDOCS = $(patsubst %,$(OUT)%.html,$(DOCNAMES))
|
||||
TEXTDOCS = $(patsubst %,$(OUT)%.text,$(DOCNAMES))
|
||||
@ -19,7 +19,7 @@ BROWSER = firefox
|
||||
THEME = compact_subsurface
|
||||
PWD = $(realpath .)
|
||||
|
||||
all: $(HTMLDOCS) $(TEXTDOCS) $(PDFDOCS)
|
||||
all: $(HTMLEDOCS) $(TEXTDOCS) $(PDFDOCS)
|
||||
|
||||
doc: $(HTMLDOCS)
|
||||
|
||||
@ -30,20 +30,9 @@ $(OUT)%.pdf: %.txt
|
||||
-$(A2X) --dblatex-opts "-P latex.output.revhistory=0" -f pdf $<
|
||||
|
||||
$(OUT)%.html: %.txt
|
||||
$(ASCIIDOC) --version > /dev/null 2>&1 || echo "if asciidoc isn't found the html file included in the sources is copied"
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a themedir=$(PWD) -a theme=$(THEME) -o $@ $< || \
|
||||
cp $(<:%.txt=%.html.git) $@
|
||||
|
||||
# for the web facing version of the desktop manual, just use the post-processing script
|
||||
user-manual.html.wp: user-manual.html
|
||||
bash ../scripts/prep-manual.sh $<
|
||||
|
||||
# for the web facing version of the mobile manual, re-create the HTML with only one level in
|
||||
# the table of context and then post process
|
||||
mobile-manual-v3.html.wp: mobile-manual-v3.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=1 -a themedir=$(PWD) -a theme=$(THEME) -o $(<:%.txt=%.html.tmp) $< && \
|
||||
bash ../scripts/prep-manual.sh $(<:%.txt=%.html.tmp) && \
|
||||
mv $(<:%.txt=%.html.tmp.wp) $@
|
||||
@echo "if asciidoc isn't found the html file included in the sources is copied"
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a themedir=$(PWD) -a theme=$(THEME) -a stylesdir=$(PWD) \
|
||||
-o $@ $< || cp $(<:%.txt=%.html.git) $@
|
||||
|
||||
# Alternatively::
|
||||
$(OUT)$(DOCNAME).xhtml: $(DOCSOURCE)
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
* { padding: 0; margin: 0; }
|
||||
img { border: 0; margin: 15px; max-width:90% }
|
||||
img { border: 0; }
|
||||
|
||||
/*** Layout ***/
|
||||
|
||||
@ -69,12 +69,12 @@ body { font-family: Verdana, sans-serif; }
|
||||
#footer { font-size: 0.8em; }
|
||||
|
||||
h2, h3, h4, h5, .title { font-family: Arial, sans-serif; }
|
||||
h2 { font-size: 160%; }
|
||||
h2 { font-size: 1.5em; }
|
||||
.sectionbody { font-size: 0.85em; }
|
||||
.sectionbody .sectionbody { font-size: inherit; }
|
||||
h3 { font-size: 150%; } /* 1.35em */
|
||||
h4 { font-size: 140%; } /* 1.2em */
|
||||
h5 { font-size: 130%; } /* 1em */
|
||||
h3 { font-size: 159%; } /* 1.35em */
|
||||
h4 { font-size: 141%; } /* 1.2em */
|
||||
h5 { font-size: 118%; } /* 1em */
|
||||
.title { font-size: 106%; /* 0.9em */
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
9417
Documentation/fr/po/subsurface-manual.fr.po
Normal file
|
Before Width: | Height: | Size: 38 KiB |
BIN
Documentation/images/AddDive1_f22.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 33 KiB |
BIN
Documentation/images/AddDive3_f22.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 28 KiB |
BIN
Documentation/images/DC_import_Bluetooth_Windows.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 10 KiB |
BIN
Documentation/images/DivePlanner2_f20.jpg
Normal file
|
After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 195 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
BIN
Documentation/images/Filterpanel.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 213 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 36 KiB |
BIN
Documentation/images/LoadImage3b_f20.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 35 KiB |