Skip to content

Commit cc24ef5

Browse files
committed
webmscore supporting MuseScore 4.3.2 test
1 parent 5281c15 commit cc24ef5

38 files changed

+230
-149
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build webmscore
33
on:
44
workflow_dispatch:
55
inputs: {}
6+
push:
7+
branches:
8+
- 'webmscore'
9+
- 'Xmader/**'
610

711
concurrency:
812
group: ${{ github.workflow }}-${{ github.ref }}
@@ -99,16 +103,28 @@ jobs:
99103
name: npm-pack
100104
path: web-example
101105
- name: Test
106+
id: run-test
102107
run: |
103108
cd web-example
104109
npm i
105110
npm i ./webmscore-*.tgz
106-
npm start
111+
npm start || echo "failed=1" >> "$GITHUB_OUTPUT"
107112
108113
- uses: actions/upload-artifact@v4
109114
with:
110115
name: example-exports
111116
path: web-example/exported*
117+
118+
- uses: actions/upload-artifact@v4
119+
if: steps.run-test.outputs.failed == '1'
120+
with:
121+
name: test-log
122+
path: .npm/_logs
123+
124+
- name: Make faile
125+
if: steps.run-test.outputs.failed == '1'
126+
run: |
127+
exit 1
112128
113129
publish:
114130
if: github.ref_name == 'webmscore' && startsWith(github.event.head_commit.message, 'release v')

SetupConfigure.cmake

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
include(GetBuildType)
2121
include(GetPlatformInfo)
22-
include(version)
22+
include(${MU_ROOT}/version.cmake)
2323

2424
if (NOT MUSESCORE_BUILD_CONFIGURATION)
2525
set(MUSESCORE_BUILD_CONFIGURATION "app")
@@ -248,38 +248,38 @@ function(def_opt name val)
248248
endfunction()
249249

250250
# framework
251-
def_opt(MUE_BUILD_ACCESSIBILITY_MODULE ${MUE_BUILD_ACCESSIBILITY_MODULE})
252-
def_opt(MUE_BUILD_AUDIO_MODULE ${MUE_BUILD_AUDIO_MODULE})
253-
def_opt(MUE_ENABLE_AUDIO_EXPORT ${MUE_ENABLE_AUDIO_EXPORT})
254-
def_opt(MUE_BUILD_MIDI_MODULE ${MUE_BUILD_MIDI_MODULE})
255-
def_opt(MUE_BUILD_MPE_MODULE ${MUE_BUILD_MPE_MODULE})
256-
def_opt(MUE_BUILD_MUSESAMPLER_MODULE ${MUE_BUILD_MUSESAMPLER_MODULE})
257-
def_opt(MUE_BUILD_NETWORK_MODULE ${MUE_BUILD_NETWORK_MODULE})
258-
def_opt(MUE_BUILD_SHORTCUTS_MODULE ${MUE_BUILD_SHORTCUTS_MODULE})
259-
def_opt(MUE_BUILD_UI_MODULE ${MUE_BUILD_UI_MODULE})
260-
def_opt(MUE_BUILD_VST_MODULE ${MUE_BUILD_VST_MODULE})
251+
def_opt(MUE_BUILD_ACCESSIBILITY_MODULE ${MUE_BUILD_ACCESSIBILITY_MODULE} OFF)
252+
def_opt(MUE_BUILD_AUDIO_MODULE ${MUE_BUILD_AUDIO_MODULE} OFF)
253+
def_opt(MUE_ENABLE_AUDIO_EXPORT ${MUE_ENABLE_AUDIO_EXPORT} OFF)
254+
def_opt(MUE_BUILD_MIDI_MODULE ${MUE_BUILD_MIDI_MODULE} OFF)
255+
def_opt(MUE_BUILD_MPE_MODULE ${MUE_BUILD_MPE_MODULE} OFF)
256+
def_opt(MUE_BUILD_MUSESAMPLER_MODULE ${MUE_BUILD_MUSESAMPLER_MODULE} OFF)
257+
def_opt(MUE_BUILD_NETWORK_MODULE ${MUE_BUILD_NETWORK_MODULE} OFF)
258+
def_opt(MUE_BUILD_SHORTCUTS_MODULE ${MUE_BUILD_SHORTCUTS_MODULE} OFF)
259+
def_opt(MUE_BUILD_UI_MODULE ${MUE_BUILD_UI_MODULE} OFF)
260+
def_opt(MUE_BUILD_VST_MODULE ${MUE_BUILD_VST_MODULE} OFF)
261261
# modules
262-
def_opt(MUE_BUILD_APPSHELL_MODULE ${MUE_BUILD_APPSHELL_MODULE})
263-
def_opt(MUE_BUILD_AUTOBOT_MODULE ${MUE_BUILD_AUTOBOT_MODULE})
264-
def_opt(MUE_BUILD_BRAILLE_MODULE ${MUE_BUILD_BRAILLE_MODULE})
265-
def_opt(MUE_BUILD_CLOUD_MODULE ${MUE_BUILD_CLOUD_MODULE})
266-
def_opt(MUE_BUILD_CONVERTER_MODULE ${MUE_BUILD_CONVERTER_MODULE})
267-
def_opt(MUE_BUILD_DIAGNOSTICS_MODULE ${MUE_BUILD_DIAGNOSTICS_MODULE})
268-
def_opt(MUE_BUILD_INSPECTOR_MODULE ${MUE_BUILD_INSPECTOR_MODULE})
269-
def_opt(MUE_BUILD_INSTRUMENTSSCENE_MODULE ${MUE_BUILD_INSTRUMENTSSCENE_MODULE})
270-
def_opt(MUE_BUILD_LANGUAGES_MODULE ${MUE_BUILD_LANGUAGES_MODULE})
271-
def_opt(MUE_BUILD_LEARN_MODULE ${MUE_BUILD_LEARN_MODULE})
272-
def_opt(MUE_BUILD_MULTIINSTANCES_MODULE ${MUE_BUILD_MULTIINSTANCES_MODULE})
273-
def_opt(MUE_BUILD_NOTATION_MODULE ${MUE_BUILD_NOTATION_MODULE})
274-
def_opt(MUE_BUILD_PALETTE_MODULE ${MUE_BUILD_PALETTE_MODULE})
275-
def_opt(MUE_BUILD_PLAYBACK_MODULE ${MUE_BUILD_PLAYBACK_MODULE})
276-
def_opt(MUE_BUILD_PLUGINS_MODULE ${MUE_BUILD_PLUGINS_MODULE})
277-
def_opt(MUE_BUILD_PROJECT_MODULE ${MUE_BUILD_PROJECT_MODULE})
278-
def_opt(MUE_BUILD_UPDATE_MODULE ${MUE_BUILD_UPDATE_MODULE})
279-
def_opt(MUE_BUILD_WORKSPACE_MODULE ${MUE_BUILD_WORKSPACE_MODULE})
280-
def_opt(MUE_BUILD_IMPORTEXPORT_MODULE ${MUE_BUILD_IMPORTEXPORT_MODULE})
281-
def_opt(MUE_BUILD_VIDEOEXPORT_MODULE ${MUE_BUILD_VIDEOEXPORT_MODULE})
282-
def_opt(MUE_BUILD_IMAGESEXPORT_MODULE ${MUE_BUILD_IMAGESEXPORT_MODULE})
262+
def_opt(MUE_BUILD_APPSHELL_MODULE ${MUE_BUILD_APPSHELL_MODULE} OFF)
263+
def_opt(MUE_BUILD_AUTOBOT_MODULE ${MUE_BUILD_AUTOBOT_MODULE} OFF)
264+
def_opt(MUE_BUILD_BRAILLE_MODULE ${MUE_BUILD_BRAILLE_MODULE} OFF)
265+
def_opt(MUE_BUILD_CLOUD_MODULE ${MUE_BUILD_CLOUD_MODULE} OFF)
266+
def_opt(MUE_BUILD_CONVERTER_MODULE ${MUE_BUILD_CONVERTER_MODULE} OFF)
267+
def_opt(MUE_BUILD_DIAGNOSTICS_MODULE ${MUE_BUILD_DIAGNOSTICS_MODULE} OFF)
268+
def_opt(MUE_BUILD_INSPECTOR_MODULE ${MUE_BUILD_INSPECTOR_MODULE} OFF)
269+
def_opt(MUE_BUILD_INSTRUMENTSSCENE_MODULE ${MUE_BUILD_INSTRUMENTSSCENE_MODULE} OFF)
270+
def_opt(MUE_BUILD_LANGUAGES_MODULE ${MUE_BUILD_LANGUAGES_MODULE} OFF)
271+
def_opt(MUE_BUILD_LEARN_MODULE ${MUE_BUILD_LEARN_MODULE} OFF)
272+
def_opt(MUE_BUILD_MULTIINSTANCES_MODULE ${MUE_BUILD_MULTIINSTANCES_MODULE} OFF)
273+
def_opt(MUE_BUILD_NOTATION_MODULE ${MUE_BUILD_NOTATION_MODULE} OFF)
274+
def_opt(MUE_BUILD_PALETTE_MODULE ${MUE_BUILD_PALETTE_MODULE} OFF)
275+
def_opt(MUE_BUILD_PLAYBACK_MODULE ${MUE_BUILD_PLAYBACK_MODULE} OFF)
276+
def_opt(MUE_BUILD_PLUGINS_MODULE ${MUE_BUILD_PLUGINS_MODULE} OFF)
277+
def_opt(MUE_BUILD_PROJECT_MODULE ${MUE_BUILD_PROJECT_MODULE} OFF)
278+
def_opt(MUE_BUILD_UPDATE_MODULE ${MUE_BUILD_UPDATE_MODULE} OFF)
279+
def_opt(MUE_BUILD_WORKSPACE_MODULE ${MUE_BUILD_WORKSPACE_MODULE} OFF)
280+
def_opt(MUE_BUILD_IMPORTEXPORT_MODULE ${MUE_BUILD_IMPORTEXPORT_MODULE} OFF)
281+
def_opt(MUE_BUILD_VIDEOEXPORT_MODULE ${MUE_BUILD_VIDEOEXPORT_MODULE} OFF)
282+
def_opt(MUE_BUILD_IMAGESEXPORT_MODULE ${MUE_BUILD_IMAGESEXPORT_MODULE} OFF)
283283

284284

285285
if (QT_SUPPORT)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##
22
## FreeType v2.10.2
33
##
4-
set(USE_SYSTEM_FREETYPE ON)
4+
set(USE_SYSTEM_FREETYPE OFF)
55

66
set(BROTLIDEC_FOUND TRUE)
77
set(BROTLIDEC_LIBRARIES brotlidec-static brotlicommon-static)
@@ -10,9 +10,9 @@ set(SKIP_INSTALL_ALL TRUE)
1010

1111
add_compile_definitions(FT_CONFIG_OPTION_USE_BROTLI)
1212

13-
include_directories(${MU_ROOT}/thirdparty/freetype-2-10/include)
13+
include_directories(${MU_ROOT}/src/framework/draw/thirdparty/freetype)
1414

1515
subdirs(
1616
${MU_ROOT}/thirdparty/brotli
17-
${MU_ROOT}/thirdparty/freetype-2-10
17+
${MU_ROOT}/src/framework/draw/thirdparty/freetype
1818
)

src/engraving/dom/engravingitem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ EngravingItem::EngravingItem(const ElementType& type, EngravingObject* parent, E
9494
EngravingItem::EngravingItem(const EngravingItem& e)
9595
: EngravingObject(e)
9696
{
97+
m_bbox = e.m_bbox;
9798
m_offset = e.m_offset;
9899
m_track = e.m_track;
99100
m_flags = e.m_flags;

src/engraving/dom/engravingitem.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class EngravingItem : public EngravingObject
146146
{
147147
INJECT_STATIC(IEngravingConfiguration, engravingConfiguration)
148148
INJECT_STATIC(rendering::IScoreRenderer, renderer)
149+
mutable mu::RectF m_bbox; ///< Bounding box relative to _pos + _offset
149150

150151
M_PROPERTY2(bool, isPositionLinkedToMaster, setPositionLinkedToMaster, true)
151152
M_PROPERTY2(bool, isAppearanceLinkedToMaster, setAppearanceLinkedToMaster, true)
@@ -248,6 +249,9 @@ class EngravingItem : public EngravingObject
248249

249250
bool isNudged() const { return !m_offset.isNull(); }
250251

252+
virtual const mu::RectF& bbox() const { return m_bbox; }
253+
virtual mu::RectF& bbox() { return m_bbox; }
254+
251255
bool contains(const PointF& p) const;
252256
bool intersects(const mu::RectF& r) const;
253257

src/engraving/internal/engravingconfiguration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Color EngravingConfiguration::noteBackgroundColor() const
210210

211211
Color EngravingConfiguration::fontPrimaryColor() const
212212
{
213-
return Color(uiConfiguration()->currentTheme().values[ui::ThemeStyleKey::FONT_PRIMARY_COLOR].toString());
213+
// return Color(uiConfiguration()->currentTheme().values[ui::ThemeStyleKey::FONT_PRIMARY_COLOR].toString());
214214
}
215215

216216
double EngravingConfiguration::guiScaling() const

src/engraving/playback/playbackmodel.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ class PlaybackModel : public async::Asyncable
140140

141141
mpe::ArticulationsProfilePtr defaultActiculationProfile(const InstrumentTrackId& trackId) const;
142142

143-
mpe::ArticulationsProfilePtr defaultActiculationProfile(const InstrumentTrackId& trackId) const;
144-
145143
Score* m_score = nullptr;
146144
bool m_expandRepeats = true;
147145
bool m_playChordSymbols = true;

src/framework/audio/audiomodule.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ void AudioModule::registerExports()
133133
#endif
134134

135135
#ifdef Q_OS_WASM
136-
m_audioDriver = std::shared_ptr<IAudioDriver>(new WebAudioDriver());
136+
// m_audioDriver = std::shared_ptr<IAudioDriver>(new WebAudioDriver());
137+
m_audioDriver = std::shared_ptr<IAudioDriver>(nullptr);
137138
#endif
138139

139140
#endif // JACK_AUDIO
@@ -230,7 +231,7 @@ void AudioModule::onInit(const framework::IApplication::RunMode& mode)
230231
for (const io::path_t& p : paths) {
231232
pr->reg("soundfonts", p);
232233
}
233-
pr->reg("known_audio_plugins", m_configuration->knownAudioPluginsFilePath());
234+
// pr->reg("known_audio_plugins", m_configuration->knownAudioPluginsFilePath());
234235
}
235236
}
236237

src/framework/audio/iaudiopluginsscanner.h

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,7 @@
1919
* You should have received a copy of the GNU General Public License
2020
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2121
*/
22-
<<<<<<<< HEAD:src/project/qml/MuseScore/Project/UploadProgressDialog.qml
23-
import QtQuick 2.15
24-
import QtQuick.Layouts 1.15
2522

26-
import MuseScore.UiComponents 1.0
27-
import MuseScore.Project 1.0
28-
29-
StyledDialogView {
30-
id: root
31-
32-
contentWidth: 314
33-
contentHeight: 52
34-
margins: 12
35-
36-
modal: true
37-
frameless: true
38-
closeOnEscape: false
39-
40-
ColumnLayout {
41-
anchors.fill: parent
42-
43-
spacing: 8
44-
45-
StyledTextLabel {
46-
Layout.fillWidth: true
47-
Layout.alignment: Qt.AlignHCenter
48-
49-
text: qsTrc("project", "Saving online…")
50-
font: ui.theme.largeBodyBoldFont
51-
}
52-
}
53-
}
54-
========
5523
#ifndef MU_AUDIO_IAUDIOPLUGINSSCANNER_H
5624
#define MU_AUDIO_IAUDIOPLUGINSSCANNER_H
5725

@@ -72,4 +40,3 @@ using IAudioPluginsScannerPtr = std::shared_ptr<IAudioPluginsScanner>;
7240
}
7341

7442
#endif // MU_AUDIO_IAUDIOPLUGINSSCANNER_H
75-
>>>>>>>> v4.3.2:src/framework/audio/iaudiopluginsscanner.h

src/framework/audio/internal/audioconfiguration.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,7 @@ async::Channel<io::paths_t> AudioConfiguration::soundFontDirectoriesChanged() co
219219

220220
io::path_t AudioConfiguration::knownAudioPluginsFilePath() const
221221
{
222-
return globalConfiguration()->userAppDataPath() + "/known_audio_plugins.json";
222+
NOT_IMPLEMENTED;
223+
return {}; // HACK: return empty path for now
224+
// return globalConfiguration()->userAppDataPath() + "/known_audio_plugins.json";
223225
}

0 commit comments

Comments
 (0)