Skip to content

Commit

Permalink
bump version (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez authored Oct 11, 2022
1 parent 19bf80d commit 2f8a25a
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 10 deletions.
2 changes: 1 addition & 1 deletion backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = [
name = "embassy-os"
readme = "README.md"
repository = "https://github.com/Start9Labs/embassy-os"
version = "0.3.2"
version = "0.3.2-rev.1"

[lib]
name = "embassy"
Expand Down
7 changes: 6 additions & 1 deletion backend/src/version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ mod v0_3_1;
mod v0_3_1_1;
mod v0_3_1_2;
mod v0_3_2;
mod v0_3_2_1;

pub type Current = v0_3_2::Version;
pub type Current = v0_3_2_1::Version;

#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]
#[serde(untagged)]
Expand All @@ -30,6 +31,7 @@ enum Version {
V0_3_1_1(Wrapper<v0_3_1_1::Version>),
V0_3_1_2(Wrapper<v0_3_1_2::Version>),
V0_3_2(Wrapper<v0_3_2::Version>),
V0_3_2_1(Wrapper<v0_3_2_1::Version>),
Other(emver::Version),
}

Expand All @@ -53,6 +55,7 @@ impl Version {
Version::V0_3_1_1(Wrapper(x)) => x.semver(),
Version::V0_3_1_2(Wrapper(x)) => x.semver(),
Version::V0_3_2(Wrapper(x)) => x.semver(),
Version::V0_3_2_1(Wrapper(x)) => x.semver(),
Version::Other(x) => x.clone(),
}
}
Expand Down Expand Up @@ -187,6 +190,7 @@ pub async fn init<Db: DbHandle>(
Version::V0_3_1_1(v) => v.0.migrate_to(&Current::new(), db, receipts).await?,
Version::V0_3_1_2(v) => v.0.migrate_to(&Current::new(), db, receipts).await?,
Version::V0_3_2(v) => v.0.migrate_to(&Current::new(), db, receipts).await?,
Version::V0_3_2_1(v) => v.0.migrate_to(&Current::new(), db, receipts).await?,
Version::Other(_) => {
return Err(Error::new(
eyre!("Cannot downgrade"),
Expand Down Expand Up @@ -227,6 +231,7 @@ mod tests {
Just(Version::V0_3_1_1(Wrapper(v0_3_1_1::Version::new()))),
Just(Version::V0_3_1_2(Wrapper(v0_3_1_2::Version::new()))),
Just(Version::V0_3_2(Wrapper(v0_3_2::Version::new()))),
Just(Version::V0_3_2_1(Wrapper(v0_3_2_1::Version::new()))),
em_version().prop_map(Version::Other),
]
}
Expand Down
2 changes: 0 additions & 2 deletions backend/src/version/v0_3_2.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use emver::VersionRange;

use crate::config::util::MergeWith;
use crate::hostname::{generate_id, get_hostname, sync_hostname};
use crate::ErrorKind;

use super::v0_3_0::V0_3_0_COMPAT;
use super::*;
Expand Down
26 changes: 26 additions & 0 deletions backend/src/version/v0_3_2_1.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
use super::v0_3_0::V0_3_0_COMPAT;
use super::*;

const V0_3_2_1: emver::Version = emver::Version::new(0, 3, 2, 1);

#[derive(Clone, Debug)]
pub struct Version;
#[async_trait]
impl VersionT for Version {
type Previous = v0_3_2::Version;
fn new() -> Self {
Version
}
fn semver(&self) -> emver::Version {
V0_3_2_1
}
fn compat(&self) -> &'static emver::VersionRange {
&*V0_3_0_COMPAT
}
async fn up<Db: DbHandle>(&self, db: &mut Db) -> Result<(), Error> {
Ok(())
}
async fn down<Db: DbHandle>(&self, _db: &mut Db) -> Result<(), Error> {
Ok(())
}
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "embassy-os",
"version": "0.3.2",
"version": "0.3.2.1",
"author": "Start9 Labs, Inc",
"homepage": "https://start9.com/",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/patchdb-ui-seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": null,
"auto-check-updates": true,
"pkg-order": [],
"ack-welcome": "0.3.2",
"ack-welcome": "0.3.2.1",
"marketplace": {
"selected-id": null,
"known-hosts": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@

<ion-content class="ion-padding">
<h2>This release</h2>
<h4>0.3.2~1</h4>
<p class="note-padding">
View the complete
<a
href="https://github.com/Start9Labs/embassy-os/releases/tag/v0.3.2.1"
target="_blank"
noreferrer
>release notes</a
>
for more details.
</p>
<h6>Highlights</h6>
<ul class="spaced-list">
<li>Bugfix for LAN URLs</li>
</ul>

<br />
<h2>Previous releases in this series</h2>
<h4>0.3.2</h4>
<p class="note-padding">
View the complete
Expand Down
3 changes: 2 additions & 1 deletion frontend/projects/ui/src/app/services/api/api.fixures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ export module Mock {
updated: true,
}
export const MarketplaceEos: RR.GetMarketplaceEOSRes = {
version: '0.3.2',
version: '0.3.2.1',
headline: 'Our biggest release ever.',
'release-notes': {
'0.3.2.1': 'Some **Markdown** release _notes_ for 0.3.2.1',
'0.3.2': 'Some **Markdown** release _notes_ for 0.3.2',
'0.3.1': 'Some **Markdown** release _notes_ for 0.3.1',
'0.3.0': 'Some **Markdown** release _notes_ from a prior version',
Expand Down
2 changes: 1 addition & 1 deletion frontend/projects/ui/src/app/services/api/mock-patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const mockPatchData: DataModel = {
},
'server-info': {
id: 'abcdefgh',
version: '0.3.2',
version: '0.3.2.1',
'last-backup': new Date(new Date().valueOf() - 604800001).toISOString(),
'lan-address': 'https://embassy-abcdefgh.local',
'tor-address': 'http://myveryownspecialtoraddress.onion',
Expand Down
2 changes: 1 addition & 1 deletion system-images/compat/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f8a25a

Please sign in to comment.