oribuild-linux-arm64 0.0.0-pre-alpha.1 → 0.0.0-pre-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +48 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -105,14 +105,41 @@ ori -h
105
105
  ## Working on `ori`
106
106
  ### Getting Dependencies
107
107
  - install go 1.17 https://go.dev/doc/install
108
- - install mingw-gcc. I do this via https://www.mingw-w64.org/downloads/#mingw-builds (the sourceforge link at present)
109
- - If the live installer fails, you can download the prebuilt binaries directly and add those to your path
110
- https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/
111
- - Prebuilt binaries require 7zip to extract https://www.7-zip.org/
112
- - I installed x86_64-posix-seh
113
- This is to support building libsass https://github.com/wellington/go-libsass/issues/37
114
- - get the install path of mingw-gcc's bin and add it to your path (in my case /c/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin)
115
- - Install the golang vscode plugin, and click "Install All" when it prompts you to install missing golang components (godef, gopkgs, gopls)
108
+ - If on windows, install mingw-gcc.
109
+ This is to support building libsass on windows https://github.com/wellington/go-libsass/issues/37
110
+
111
+ There are two ways to do this right now:
112
+ 1. **Via Chocolatey**:
113
+ - Install [Chocolatey](https://chocolatey.org/)
114
+ - Install mingw from chocolatey `choco install mingw`. At time of writing this installs `mingw 11.2.0.07112021`
115
+ 2. **Manually**: do this only if you encounter issues with the version distributed by `chocolatey`:
116
+
117
+ - Get a build from https://www.mingw-w64.org/downloads/#mingw-builds (the sourceforge link)
118
+ - If the live installer fails, you can download the prebuilt binaries directly and add those to your path
119
+ https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/
120
+ - Prebuilt binaries require 7zip to extract https://www.7-zip.org/
121
+ - I installed x86_64-posix-seh
122
+ - Add the path of mingw-gcc's bin to your path (in my case /c/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin)
123
+ - _(Optional, but recommended)_ Install the `go` vscode plugin, and click "Install All" when it prompts you to install missing golang components (godef, gopkgs, gopls)
124
+
125
+ ### Running ori from this repo
126
+ 1. Set up a build.json and patches directory in your target project.
127
+
128
+ See above for the build.json fields
129
+
130
+ > TODO: document the patches directory
131
+
132
+ > TODO: make a an example of an oribuild project + config (#10)
133
+
134
+
135
+ 2. Building and Running
136
+
137
+ ```sh
138
+ cd oribuild
139
+ go run . -c ../path/to/build.json`
140
+ ```
141
+
142
+ The first time you run this, go will fetch and build all the dependencies in oribuild/go.mod
116
143
 
117
144
  ### Catches
118
145
 
@@ -158,6 +185,19 @@ go tool pprof -http=localhost:8080 traces/cpu.pprof.incremental*
158
185
 
159
186
  # Analyse traces
160
187
  go tool trace traces/trace.out.*
188
+
189
+ # cutting a new release, from root dir
190
+ # first, update the version numbers in dist/oribuild/package.json,
191
+ # and update the dependency versions to the same version number.
192
+ git commit -m "bump to 0.0.0-pre-alpha.4"
193
+ git tag v0.0.0-pre-alpha.4
194
+ git push
195
+ git push --tags
196
+ # this reads the version numbers from dist/oribuild/package.json
197
+ # and generates new packages.
198
+ ./scripts/build-everything.sh
199
+ # this publishes to npm (you'll have to npm login separately)
200
+ ./scripts/publish-everything.sh
161
201
  ```
162
202
 
163
203
  ## FAQs
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "oribuild-linux-arm64",
3
- "version": "0.0.0-pre-alpha.1",
3
+ "version": "0.0.0-pre-alpha.4",
4
4
  "repository": {
5
5
  "url": "https://github.com/microsoft/ori"
6
6
  },
7
7
  "os": [
8
- "x64"
8
+ "linux"
9
9
  ],
10
10
  "cpu": [
11
- "linux"
11
+ "arm64"
12
12
  ],
13
13
  "bin": {
14
14
  "ori": "./platform-unimplemented.js"