mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-25 08:58:25 +03:00
Compare commits
9 Commits
Muse.16.15
...
I2S-4MFlas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
750ffbf464 | ||
|
|
65f52a23bc | ||
|
|
da411bf1c8 | ||
|
|
0a319269c2 | ||
|
|
b0ce38bf14 | ||
|
|
767b677947 | ||
|
|
724818390b | ||
|
|
105e800cc1 | ||
|
|
ab09f009f7 |
10
.github/workflows/Platform_build.yml
vendored
10
.github/workflows/Platform_build.yml
vendored
@@ -39,10 +39,10 @@ jobs:
|
||||
id: build_flags
|
||||
run: |
|
||||
git config --global --add safe.directory /__w/squeezelite-esp32/squeezelite-esp32
|
||||
[ "${{github.event.inputs.ui_build}}" == "1" ] && ui_build_option="--ui_build" || ui_build_option=""
|
||||
[ "${{github.event.inputs.release_build}}" == "true" ] && release_build_option="--force" || release_build_option=""
|
||||
echo "ui_build_option=$ui_build_option" >> $GITHUB_ENV
|
||||
echo "release_build_option=$release_build_option" >> $GITHUB_ENV
|
||||
[ ${{github.event.inputs.ui_build}} ] && ui_build_option="--ui_build" || ui_build_option=""
|
||||
[ ${{github.event.inputs.release_build}} ] && release_build_option="--force" || release_build_option=""
|
||||
echo "ui_build_option=$ui_build_option" >> "$GITHUB_OUTPUT"
|
||||
echo "release_build_option=$release_build_option" >> "$GITHUB_OUTPUT"
|
||||
echo "Dumping environment"
|
||||
env
|
||||
. /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
|
||||
@@ -197,7 +197,7 @@ jobs:
|
||||
release_name: ${{ env.name }}
|
||||
body: ${{ env.description }}
|
||||
draft: false
|
||||
prerelease: true
|
||||
prerelease: false
|
||||
- name: Upload Release Asset - Squeezelite binary file
|
||||
if: ${{ needs.bootstrap.outputs.release_flag == 1 && needs.bootstrap.outputs.mock == 0 }}
|
||||
id: upload-release-asset
|
||||
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -8,3 +8,6 @@
|
||||
[submodule "components/wifi-manager/UML-State-Machine-in-C"]
|
||||
path = components/wifi-manager/UML-State-Machine-in-C
|
||||
url = https://github.com/kiishor/UML-State-Machine-in-C
|
||||
[submodule "components/wifi-manager/webapp/src/bootswatch"]
|
||||
path = components/wifi-manager/webapp/src/bootswatch
|
||||
url = https://github.com/thomaspark/bootswatch.git
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
2023-10-06
|
||||
- Fix bootswatch bug that caused difficult to read UI ( issue #319)
|
||||
|
||||
2023-10-02
|
||||
- update cspot
|
||||
|
||||
|
||||
@@ -24,11 +24,7 @@ void TrackReference::decodeURI() {
|
||||
gid = bigNumAdd(gid, d);
|
||||
}
|
||||
|
||||
#if __cplusplus >= 202002L
|
||||
if (uri.starts_with("episode")) {
|
||||
#else
|
||||
if (uri.find("episode") == 0) {
|
||||
#endif
|
||||
if (uri.find("episode:") != std::string::npos) {
|
||||
type = Type::EPISODE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"babel": "^6.23.0",
|
||||
"babel-loader": "^8.2.3",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"bootswatch": "^5.1.3",
|
||||
"bootswatch": "file:src/bootswatch",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"commander": "^8.3.0",
|
||||
"compression-webpack-plugin": "^9.2.0",
|
||||
@@ -68,7 +68,7 @@
|
||||
"typescript": "^4.5.5",
|
||||
"webpack": "^5.67.0",
|
||||
"webpack-bundle-analyzer": "^4.8.0",
|
||||
"webpack-cli": "^4.9.2",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"webpack-dev-server": "^4.7.3"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -76,6 +76,7 @@
|
||||
"async-mutex": "^0.3.2",
|
||||
"bootstrap": "^5.1.3",
|
||||
"jquery": "^3.6.0",
|
||||
"npm": "^10.1.0",
|
||||
"popper.js": "^1.16.1",
|
||||
"webpack-visualizer-plugin": "^0.1.11",
|
||||
"webpack-visualizer-plugin2": "^1.0.0"
|
||||
|
||||
1
components/wifi-manager/webapp/src/bootswatch
Submodule
1
components/wifi-manager/webapp/src/bootswatch
Submodule
Submodule components/wifi-manager/webapp/src/bootswatch added at 3038872b83
@@ -142,6 +142,10 @@ parser_commits = subparsers.add_parser("list_commits",add_help=False,
|
||||
description="Commits list",
|
||||
help="Lists the last commits"
|
||||
)
|
||||
parser_changelog = subparsers.add_parser("changelog",add_help=False,
|
||||
description="Change Log",
|
||||
help="Shows the change log"
|
||||
)
|
||||
|
||||
parser_dir = subparsers.add_parser("list_files",
|
||||
add_help=False,
|
||||
@@ -610,7 +614,25 @@ class Releases():
|
||||
|
||||
@classmethod
|
||||
def get_commit_list_descriptions(cls) -> str:
|
||||
# return '<<~EOD\n### Revision Log\n'+Logger.NEWLINE_CHAR.join(cls.get_commit_list())+'\n~EOD'
|
||||
return '<<~EOD\n### Revision Log\n'+Logger.NEWLINE_CHAR.join(cls.get_commit_list())+'\n~EOD'
|
||||
@classmethod
|
||||
def get_changelog(cls) -> str:
|
||||
# return '<<~EOD\n### Revision Log\n'+Logger.NEWLINE_CHAR.join(cls.get_commit_list())+'\n~EOD'
|
||||
fname = os.path.abspath('CHANGELOG')
|
||||
folder: str = os.path.abspath(os.path.dirname(fname))
|
||||
print(f'Opening changelog file {fname} from {folder}')
|
||||
try:
|
||||
with open(fname) as f:
|
||||
content = f.read()
|
||||
Logger.debug(f'Change Log:\n{content}')
|
||||
return f'<<~EOD\n{content}\n~EOD'
|
||||
except Exception as ex:
|
||||
Logger.error(
|
||||
f"Unable to load change log file content. Content of {folder}:{Logger.NEWLINE_CHAR.join(get_file_list(folder))}")
|
||||
raise
|
||||
|
||||
return f'<<~EOD\n### Revision Log\n\n~EOD'
|
||||
|
||||
def update(self, *args, **kwargs):
|
||||
if args:
|
||||
@@ -652,14 +674,24 @@ def parse_json(filename: str):
|
||||
|
||||
|
||||
def write_github_env_file(values,env_file):
|
||||
print(f'Writing content to {env_file}...')
|
||||
with open(env_file, "w") as env_file:
|
||||
for attr in [attr for attr in dir(values) if not attr.startswith('_')]:
|
||||
line = f'{attr}{"=" if attr != "description" else ""}{getattr(values,attr)}'
|
||||
env_file_stream = None
|
||||
if env_file is not None:
|
||||
print(f'Writing content to {env_file}...')
|
||||
env_file_stream = open(env_file, "w")
|
||||
else:
|
||||
print(f'Writing content to console...')
|
||||
env_file_stream = sys.stdout
|
||||
for attr in [attr for attr in dir(values) if not attr.startswith('_')]:
|
||||
line = f'{attr}{"=" if attr != "description" else ""}{getattr(values,attr)}'
|
||||
if env_file is not None:
|
||||
print(line)
|
||||
env_file.write(f'{line}\n')
|
||||
os.environ[attr] = str(getattr(values, attr))
|
||||
print(f'Done writing to {env_file}!')
|
||||
env_file_stream.write(f'{line}\n')
|
||||
os.environ[attr] = str(getattr(values, attr))
|
||||
if env_file is not None:
|
||||
print(f'Done writing to {env_file}!')
|
||||
env_file_stream.close()
|
||||
else:
|
||||
print(f'Done Writing content to console...')
|
||||
|
||||
|
||||
|
||||
@@ -673,15 +705,13 @@ def format_artifact_from_manifest(manif_json: AttributeDict):
|
||||
def format_artifact_name(base_name: str = '', args=AttributeDict(os.environ)):
|
||||
return f'{base_name}{args.branch_name}-{args.node}-{args.depth}-{args.major}{args.build}'
|
||||
|
||||
|
||||
def handle_build_flags(args):
|
||||
set_workdir(args)
|
||||
print('Setting global build flags')
|
||||
commit_message: str = Releases.get_last_commit_message()
|
||||
github_env.mock = 1 if args.mock else 0
|
||||
github_env.release_flag = 1 if args.mock or args.force or 'release' in commit_message.lower() else 0
|
||||
github_env.ui_build = 1 if args.mock or args.ui_build or '[ui-build]' in commit_message.lower(
|
||||
) else 0
|
||||
github_env.ui_build = 1 if args.mock or args.ui_build or '[ui-build]' in commit_message.lower() else 0
|
||||
write_github_env_file(github_env,os.environ.get('GITHUB_OUTPUT'))
|
||||
|
||||
def write_version_number(file_path:str,env_details):
|
||||
@@ -725,11 +755,10 @@ def handle_environment(args):
|
||||
github_env.artifact_file_name = f"{github_env.artifact_prefix}.zip"
|
||||
github_env.artifact_bin_file_name = f"{github_env.artifact_prefix}.bin"
|
||||
github_env.PROJECT_VER = f'{args.node}-{ args.build }'
|
||||
github_env.description = Releases.get_commit_list_descriptions()
|
||||
github_env.description = Releases.get_changelog()
|
||||
write_github_env_file(github_env,args.env_file)
|
||||
write_version_number("version.txt",github_env)
|
||||
|
||||
|
||||
def handle_artifacts(args):
|
||||
set_workdir(args)
|
||||
print(f'Handling artifacts')
|
||||
@@ -956,6 +985,9 @@ def handle_list_files(args):
|
||||
def handle_commits(args):
|
||||
set_workdir(args)
|
||||
print(Releases.get_commit_list_descriptions())
|
||||
def handle_changelog(args):
|
||||
set_workdir(args)
|
||||
print(Releases.get_changelog())
|
||||
|
||||
|
||||
parser_environment.set_defaults(func=handle_environment, cmd='environment')
|
||||
@@ -965,7 +997,7 @@ parser_show.set_defaults(func=handle_show, cmd='show')
|
||||
parser_build_flags.set_defaults(func=handle_build_flags, cmd='build_flags')
|
||||
parser_dir.set_defaults(func=handle_list_files, cmd='list_files')
|
||||
parser_commits.set_defaults(func=handle_commits,cmd='list_commits')
|
||||
|
||||
parser_changelog.set_defaults(func=handle_changelog,cmd='changelog')
|
||||
|
||||
def main():
|
||||
exit_result_code = 0
|
||||
|
||||
BIN
server_certs/DigiCertGlobalRootCA.crt.55
Normal file
BIN
server_certs/DigiCertGlobalRootCA.crt.55
Normal file
Binary file not shown.
BIN
server_certs/DigiCertGlobalRootCA.crt.56
Normal file
BIN
server_certs/DigiCertGlobalRootCA.crt.56
Normal file
Binary file not shown.
BIN
server_certs/r2m01.cer.27
Normal file
BIN
server_certs/r2m01.cer.27
Normal file
Binary file not shown.
BIN
server_certs/r2m01.cer.28
Normal file
BIN
server_certs/r2m01.cer.28
Normal file
Binary file not shown.
Reference in New Issue
Block a user