Открыть боковую панель
Aurora OS
Flutter
Flutter Community Plugins
internal_aurora
Коммиты
4f993813
Коммит
4f993813
создал
Авг 11, 2025
по автору
Житницкая Ирина Станиславовна
Просмотр файлов
[CI] Adding ci support
владелец
17ab9a0a
Изменения
3
Скрыть пробелы
Построчно
Рядом
.gitlab-ci.yml
Просмотр файла @
4f993813
include
:
-
project
:
'
oss/flutter/gitlab-ci-configuration'
file
:
'
/plugins/.plugin-ci-mono-repo.yml'
stages
:
-
build
-
sign
-
validation
"
build-aurora-flutter_aarch64"
:
stage
:
build
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
./gitlab-ci/build.sh -f /opt/flutter_aurora/bin/flutter -t aurora-arm64 -v "$PSDK_VER"
when
:
always
"
build-aurora-flutter_armv7hl"
:
stage
:
build
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
./gitlab-ci/build.sh -f /opt/flutter_aurora/bin/flutter -t aurora-arm -v "$PSDK_VER"
when
:
always
"
build-aurora-flutter_x86_64"
:
stage
:
build
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
./gitlab-ci/build.sh -f /opt/flutter_aurora/bin/flutter -t aurora-x64 -v "$PSDK_VER"
when
:
always
"
sign-aurora-flutter_aarch64"
:
stage
:
sign
needs
:
[
"
build-aurora-flutter_aarch64"
]
dependencies
:
-
"
build-aurora-flutter_aarch64"
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
/home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -r ./artifacts
"
sign-aurora-flutter_armv7hl"
:
stage
:
sign
needs
:
[
"
build-aurora-flutter_armv7hl"
]
dependencies
:
-
"
build-aurora-flutter_armv7hl"
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
/home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -r ./artifacts
"
sign-aurora-flutter_x86_64"
:
stage
:
sign
needs
:
[
"
build-aurora-flutter_x86_64"
]
dependencies
:
-
"
build-aurora-flutter_x86_64"
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
/home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -r ./artifacts
"
validation-aurora-flutter_aarch64"
:
stage
:
validation
needs
:
[
"
sign-aurora-flutter_aarch64"
]
dependencies
:
-
"
sign-aurora-flutter_aarch64"
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
/home/gitlab-runner/aurora-utils/rpm_validator /home/gitlab-runner/Aurora5PlatformSDK/ ./example/artifacts/ru.auroraos.internal_example-0.1.0-1.aarch64.rpm
"
validation-aurora-flutter_armv7hl"
:
stage
:
validation
needs
:
[
"
sign-aurora-flutter_armv7hl"
]
dependencies
:
-
"
sign-aurora-flutter_armv7hl"
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
/home/gitlab-runner/aurora-utils/rpm_validator /home/gitlab-runner/Aurora5PlatformSDK/ ./example/artifacts/ru.auroraos.internal_example-0.1.0-1.armv7hl.rpm
"
validation-aurora-flutter_x86_64"
:
stage
:
validation
needs
:
[
"
sign-aurora-flutter_x86_64"
]
dependencies
:
-
"
sign-aurora-flutter_x86_64"
tags
:
-
aurora_flutter_runner
artifacts
:
paths
:
-
./example/artifacts/*.rpm
script
:
-
/home/gitlab-runner/aurora-utils/rpm_validator /home/gitlab-runner/Aurora5PlatformSDK/ ./example/artifacts/ru.auroraos.internal_example-0.1.0-1.x86_64.rpm
gitlab-ci/build.sh
0 → 100755
Просмотр файла @
4f993813
#!/bin/bash
# handle commandline options
usage
()
{
echo
"Script for building Flutter projects."
echo
echo
"Usage: build.sh <options>"
echo
echo
"Options:"
echo
"-f | --flutter Path to Flutter sdk."
echo
"-t | --target PSDK target to build RPM with."
echo
"-v | --version PSDK version."
echo
"-h | --help Print this help and exit."
}
while
[[
${
1
:-}
]]
;
do
case
"
$1
"
in
-f
|
--flutter
)
shift
FLUTTER_PATH
=
$1
;
shift
;;
-t
|
--target
)
shift
PSDK_TARGET
=
$1
;
shift
;;
-v
|
--version
)
shift
PSDK_VERSION
=
$1
;
shift
;;
-h
|
--help
)
shift
usage
exit
;;
*
)
usage
exit
;;
esac
done
if
[[
-z
$FLUTTER_PATH
]]
;
then
echo
"Incorrect path to Flutter SDK"
exit
fi
if
[[
-z
$PSDK_TARGET
]]
;
then
echo
"Incorrect target of PSDK"
exit
fi
if
[[
-z
$PSDK_VERSION
]]
;
then
echo
"Incorrect version of PSDK"
exit
fi
cd
example
mkdir
-p
artifacts
# Resolving dependencies
echo
"Resolving dependencies"
$FLUTTER_PATH
pub get
# Build project
echo
"Build project for
$PSDK_TARGET
"
$FLUTTER_PATH
build aurora
--release
--target-platform
$PSDK_TARGET
# Copy build artifacts
cp
build/aurora/psdk_
$PSDK_VERSION
/
$PSDK_TARGET
/release/RPMS/
*
./artifacts
gitlab-ci/sign.sh
0 → 100755
Просмотр файла @
4f993813
#!/bin/bash
set
-e
# handle commandline options
usage
()
{
echo
"Script for signing RPM packages with PSDK."
echo
echo
"Usage: sign.sh <options>"
echo
echo
"Options:"
echo
"-r | --rpm Path to directory with RPM packages."
echo
"-p | --profile Validation profile for signing RPM-package."
echo
" Available validation profiles: regular, extended, mdm, antivirus, auth."
echo
"-h | --help Print this help and exit."
}
while
[[
${
1
:-}
]]
;
do
case
"
$1
"
in
-r
|
--rpm
)
shift
OPT_RPM_PATH
=
$1
;
shift
;;
-p
|
--profile
)
shift
OPT_SIGN_PROFILE
=
$1
;
shift
;;
-h
|
--help
)
shift
usage
exit
;;
*
)
usage
exit
;;
esac
done
if
[[
-z
$OPT_RPM_PATH
]]
;
then
echo
"Enter path to directory with RPM packages"
exit
1
fi
if
[[
-z
$OPT_SIGN_PROFILE
]]
;
then
OPT_SIGN_PROFILE
=
"regular"
fi
if
[[
"
$OPT_SIGN_PROFILE
"
!=
"regular"
]]
&&
[[
"
$OPT_SIGN_PROFILE
"
!=
"extended"
]]
&&
[[
"
$OPT_SIGN_PROFILE
"
!=
"mdm"
]]
&&
[[
"
$OPT_SIGN_PROFILE
"
!=
"antivirus"
]]
&&
[[
"
$OPT_SIGN_PROFILE
"
!=
"auth"
]]
;
then
echo
"Incorrect validation profile"
exit
1
fi
cd
example
# Sign artifact
echo
"Sign artifact"
rpmsign-external sign
\
-k
~/aurora-profiles/
$OPT_SIGN_PROFILE
/key.pem
\
-c
~/aurora-profiles/
$OPT_SIGN_PROFILE
/cert.pem
\
$OPT_RPM_PATH
/
*
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать