mirror of
https://github.com/google/pebble.git
synced 2025-06-04 01:03:12 +00:00
Import the pebble dev site into devsite/
This commit is contained in:
parent
3b92768480
commit
527858cf4c
1359 changed files with 265431 additions and 0 deletions
|
@ -0,0 +1,67 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
### Windows
|
||||
|
||||
Installing the Pebble SDK directly on Windows is not supported at this time. We
|
||||
recommend you use [CloudPebble]({{ site.links.cloudpebble }}) instead.
|
||||
|
||||
Alternatively, you can run a Linux virtual machine:
|
||||
|
||||
1. Install a virtual machine manager such as
|
||||
[VirtualBox](http://www.virtualbox.org/) (free) or
|
||||
[VMWare Workstation](http://www.vmware.com/products/workstation/).
|
||||
2. Install [Ubuntu Linux](http://www.ubuntu.com/) in a new virtual machine.
|
||||
3. Follow the [manual installation instructions](/sdk/install/linux/), but skip
|
||||
"Download and install the Pebble ARM toolchain", as the toolchain is
|
||||
included.
|
||||
|
||||
|
||||
### Mac OS X
|
||||
|
||||
If you previously used Homebrew to install the Pebble SDK, run:
|
||||
|
||||
```bash
|
||||
$ brew update && brew upgrade --devel pebble-sdk
|
||||
```
|
||||
|
||||
If you've never used Homebrew to install the Pebble SDK, run:
|
||||
|
||||
```bash
|
||||
$ brew update && brew install --devel pebble/pebble-sdk/pebble-sdk
|
||||
```
|
||||
|
||||
If you would prefer to not use Homebrew and would like to manually install the
|
||||
Pebble SDK:
|
||||
|
||||
1. Download the
|
||||
[SDK package](https://s3.amazonaws.com/assets.getpebble.com/pebble-tool/pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-mac.tar.bz2).
|
||||
|
||||
2. Follow the [manual installation instructions](/sdk/install/), but skip
|
||||
"Download and install the Pebble ARM toolchain", as the toolchain is
|
||||
included.
|
||||
|
||||
|
||||
### Linux
|
||||
|
||||
1. Download the relevant package:
|
||||
[Linux (32-bit)](https://s3.amazonaws.com/assets.getpebble.com/pebble-tool/pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-linux32.tar.bz2) |
|
||||
[Linux (64-bit)](https://s3.amazonaws.com/assets.getpebble.com/pebble-tool/pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-linux64.tar.bz2)
|
||||
|
||||
2. Install the SDK by following the
|
||||
[manual installation instructions](/sdk/install/linux/), but skip
|
||||
"Download and install the Pebble ARM toolchain", as the toolchain is
|
||||
included.
|
19
devsite/source/_includes/sdk/homebrew-legacy.html
Normal file
19
devsite/source/_includes/sdk/homebrew-legacy.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% highlight { "language": "sh", "classes": "text-left" } %}
|
||||
brew install pebble/pebble-sdk/pebble-sdk-legacy
|
||||
{% endhighlight %}
|
19
devsite/source/_includes/sdk/homebrew.html
Normal file
19
devsite/source/_includes/sdk/homebrew.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% highlight { "language": "sh", "classes": "text-center" } %}
|
||||
brew install pebble/pebble-sdk/pebble-sdk
|
||||
{% endhighlight %}
|
23
devsite/source/_includes/sdk/steps_getting_started.md
Normal file
23
devsite/source/_includes/sdk/steps_getting_started.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
## Next Steps
|
||||
|
||||
Now that you have the Pebble SDK downloaded and installed on your computer,
|
||||
it is time to learn how to write your first app!
|
||||
|
||||
You should checkout the [Tutorials](/tutorials/) for a step-by-step look at how
|
||||
to write a simple C Pebble application.
|
25
devsite/source/_includes/sdk/steps_help.md
Normal file
25
devsite/source/_includes/sdk/steps_help.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
### Installation Problems?
|
||||
|
||||
If you have any issues with downloading or installing the Pebble SDK, you
|
||||
should take a look at the
|
||||
[SDK Help category](https://forums.getpebble.com/categories/watchface-sdk-help)
|
||||
on our forums.
|
||||
|
||||
Alternatively, you can [send us a message](/contact/) letting us know what
|
||||
issues you're having and we will try and help you out.
|
55
devsite/source/_includes/sdk/steps_install_sdk.md
Normal file
55
devsite/source/_includes/sdk/steps_install_sdk.md
Normal file
|
@ -0,0 +1,55 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
{% if include.mac %}
|
||||
1. If you have not already, download the [latest version of the SDK]({{ site.links.pebble_tool_root }}pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-mac.tar.bz2).
|
||||
{% else %}
|
||||
1. If you have not already, download the latest version of the SDK -
|
||||
[Linux 32-bit]({{ site.links.pebble_tool_root }}pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-linux32.tar.bz2) |
|
||||
[Linux 64-bit]({{ site.links.pebble_tool_root }}pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-linux64.tar.bz2).
|
||||
{% endif %}
|
||||
|
||||
2. Open {% if include.mac %}Terminal{% else %}a terminal{% endif %} window and
|
||||
create a directory to host all Pebble tools:
|
||||
|
||||
```bash
|
||||
mkdir {{ site.data.sdk.path }}
|
||||
```
|
||||
|
||||
3. Change into that directory and extract the Pebble SDK that you just
|
||||
downloaded, for example:
|
||||
|
||||
```bash
|
||||
cd {{ site.data.sdk.path }}
|
||||
tar -jxf ~/Downloads/pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-{% if include.mac %}mac{% else %}linux64{% endif %}.tar.bz2
|
||||
```
|
||||
|
||||
{% unless include.mac %}
|
||||
> Note: If you are using 32-bit Linux, the path shown above will be
|
||||
> different as appropriate.
|
||||
{% endunless %}
|
||||
|
||||
You should now have the directory
|
||||
`{{ site.data.sdk.path }}pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-{% if include.mac %}mac{% else %}linux64{% endif %}` with the SDK files and directories inside it.
|
||||
|
||||
4. Add the `pebble` tool to your path and reload your shell configuration:
|
||||
|
||||
```bash
|
||||
echo 'export PATH=~/pebble-dev/pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-{% if include.mac %}mac{% else %}linux64{% endif %}/bin:$PATH' >> ~/.bash_profile
|
||||
. ~/.bash_profile
|
||||
```
|
||||
|
||||
You can now continue on and install the rest of the dependencies.
|
47
devsite/source/_includes/sdk/steps_python.md
Normal file
47
devsite/source/_includes/sdk/steps_python.md
Normal file
|
@ -0,0 +1,47 @@
|
|||
{% comment %}
|
||||
Copyright 2025 Google LLC
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
{% endcomment %}
|
||||
|
||||
### Download and install Python libraries
|
||||
|
||||
The Pebble SDK depends on Python libraries to convert fonts and images from your
|
||||
computer into Pebble resources.
|
||||
|
||||
{% if include.mac %}
|
||||
You need to use the standard Python `easy_install` package manager to install
|
||||
the alternative `pip` package manager. This is then used to install other Python
|
||||
dependencies.
|
||||
|
||||
Follow these steps in Terminal:
|
||||
{% endif %}
|
||||
|
||||
1. Install `pip` and `virtualenv`:
|
||||
|
||||
```bash
|
||||
{% if include.mac %}sudo easy_install pip{% else %}sudo apt-get install python-pip python2.7-dev{% endif %}
|
||||
sudo pip install virtualenv
|
||||
```
|
||||
|
||||
2. Install the Python library dependencies locally:
|
||||
|
||||
```bash
|
||||
cd {{ site.data.sdk.path }}pebble-sdk-{{ site.data.sdk.pebble_tool.version }}-{% if include.mac %}mac{% else %}linux64{% endif %}
|
||||
virtualenv --no-site-packages .env
|
||||
source .env/bin/activate
|
||||
{% if include.mac %}CFLAGS="" {% endif %}pip install -r requirements.txt
|
||||
deactivate
|
||||
```
|
||||
|
||||
> **Note: virtualenv is not optional.**
|
Loading…
Add table
Add a link
Reference in a new issue