mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00

Updated the version from 1.1 to 1.2 Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License" Added definition of "Mobile Application" and grant of right Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage Moved the para on copyright notices to section under "Limitations"
46 lines
1.6 KiB
Bash
Executable file
46 lines
1.6 KiB
Bash
Executable file
#!/bin/bash -e
|
|
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
|
|
|
cd `dirname $0`/../editors/vscode
|
|
|
|
modified_files="README.md package.json"
|
|
|
|
git diff --quiet $modified_files
|
|
if [ $? -ne 0 ]; then
|
|
echo "Aborting, there are local changes to $modified_files . Please commit or undo."
|
|
exit 1
|
|
fi
|
|
|
|
git checkout $modified_files
|
|
|
|
# The version number is a shortend time stamp of the last commit
|
|
nightly_version=`git log -1 --format=%cd --date="format:%Y.%-m.%-d%H"`
|
|
last_commit=`git log -1 --format=%H`
|
|
|
|
# Prepare a modified package.json that has the generated version
|
|
# and nightly in the name
|
|
|
|
git show HEAD:./package.json | jq --arg nightly_version "${nightly_version}" '
|
|
.version = $nightly_version |
|
|
.name += "-nightly" |
|
|
.displayName += " (Nightly)" |
|
|
.description += " (Nightly)" |
|
|
. + {"preview": true}' > package.json
|
|
|
|
cat >README.md <<EOT
|
|
# Slint for Visual Studio Code Nightly
|
|
|
|
*Note: This is the nightly preview version of the VS Code extension.*
|
|
|
|
It is published a regular intervals using the latest development code, to
|
|
preview new features and test bug fixes. This means that it can be broken
|
|
or unstable.
|
|
EOT
|
|
git show HEAD:./README.md | sed '/^# Slint for Visual Studio Code$/d;/^## Building from Source$/,$d' >> README.md
|
|
|
|
cat > CHANGELOG.md <<EOT
|
|
This nightly build was created from commit $last_commit
|
|
EOT
|
|
|
|
echo "package.json, README.md, etc. have been modified. You can package the extension now. Run git checkout afterwards to undo the modifications done by this script."
|