You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-47Lines changed: 34 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,40 @@ Music Blocks Launcher
3
3
4
4
This repository contains the files needed to build the Flatpak application for Music Blocks.
5
5
6
+
### Creating AppImage Binaries
7
+
1. Clone the [musicblocks-app](https://github.com/srevinsaju/musicblocks-app) GitHub repository and clone [musicblocks](https://github.com/sugarlabs/musicblocks.git) into the musicblocks-app directory (`musicblocks` should be nested insided `musicblocks-app`).
8
+
9
+
2. Ensure that the correct version of musicblocks is downloaded (however specified in the the metadata files for the flatpak app). To change versions, use the corresponding tag (while in the musicblocks directory):
10
+
11
+
```
12
+
$ git checkout tags/[tag_name]
13
+
```
14
+
15
+
3. Apply `musicblocks-app.patch` and `musicblocks.patch` to the respective directories:
16
+
17
+
```
18
+
$ git apply patches/musicblocks-app.patch
19
+
$ cd musicblocks
20
+
$ git apply ../patches/musicblocks.patch
21
+
```
22
+
23
+
4. Enter the following commands into a command line window in the `musicblocks-app` directory:
24
+
25
+
```
26
+
$ npm install
27
+
$ npm install -g electron-builder
28
+
$ electron-builder build --linux --armv7l
29
+
$ electron-builder build --linux --arm64
30
+
$ electron-builder build --linux x64
31
+
```
32
+
33
+
5. Rename the create AppImage files (found in the `dist` folder) to:
6. Create a release in this repository with the binaries attached.
39
+
6
40
### Installation
7
41
1. Install `flatpak-builder`, the freedesktop runtime and SDK, and the electron baseapp:
8
42
@@ -33,50 +67,3 @@ To add screenshots:
33
67
* Screenshots must be generally 16x9 and no larger than 1600px by 900px.
34
68
* Add the screenshot to `org.sugarlabs.MusicBlocks.appdata.xml`.
35
69
* Screenshots should follow [AppStream specifications](https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#tag-dapp-screenshots).
36
-
37
-
### Creating AppImage Binaries
38
-
1. Clone the [musicblocks-app](https://github.com/srevinsaju/musicblocks-app) GitHub repository and clone [musicblocks](https://github.com/sugarlabs/musicblocks.git) into the musicblocks-app directory.
39
-
40
-
(The following are patch fixes that I'll create actual diff patches for – for now these are the changes)
41
-
42
-
2. As of 2020-08-14, musicblocks-app has a bug that creates an infinite loop when closing the app. To fix this, comment out the following code in `main.js`:
43
-
44
-
```
45
-
mainWindow.on('close', function(e){
46
-
var choice = require('electron').dialog.showMessageBoxSync(this,
47
-
{
48
-
type: 'question',
49
-
buttons: ['Yes', 'No'],
50
-
title: 'Confirm',
51
-
message: 'Are you sure you want to quit? You might have unsaved changes.'
52
-
});
53
-
if (choice == 1) {
54
-
e.preventDefault();
55
-
}
56
-
});
57
-
```
58
-
59
-
3. You'll also have to add the following line underneath `mainWindow.loadFile('musicblocks/index.html')`:
60
-
61
-
```
62
-
mainWindow.removeMenu()
63
-
```
64
-
65
-
4. Next, set `filename` to `defaultfilename` at line 87 in `musicblocks/js/SaveInterface.js` and comment out the `window.onbeforeunload` function at the end of the file.
66
-
67
-
5. Enter the following commands into a command line window in the `musicblocks-app` directory:
68
-
69
-
```
70
-
$ npm install
71
-
$ npm install -g electron-builder
72
-
$ electron-builder build --linux --armv7l
73
-
$ electron-builder build --linux --arm64
74
-
$ electron-builder build --linux x64
75
-
```
76
-
77
-
6. Rename the create AppImage files (found in the `dist` folder) to:
0 commit comments