chore: bump version in webapp server (#4795)

This commit is contained in:
Shreyas 2025-02-28 16:49:44 +05:30 committed by GitHub
parent a1e581632d
commit d4125ffd7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ pub struct Bundle {
impl Bundle {
pub fn new(bundle_version: Option<String>, content: Vec<u8>, signature: Signature, files: Vec<FileEntry>) -> Self {
let metadata = BundleMetadata {
version: bundle_version.unwrap_or_else(|| env!("CARGO_PKG_VERSION").to_string()),
version: "2025.2.0".to_string(),
created_at: Utc::now(),
signature,
manifest: Manifest { files },

View file

@ -54,7 +54,7 @@ impl Default for ServerConfig {
Self {
port: default_port(),
max_bundle_size: default_max_bundle_size(),
bundle_version: None,
bundle_version: Some("2025.2.0".to_string()),
csp_directives: None,
signing_key: None,
verifying_key: None,
@ -75,7 +75,7 @@ impl ServerConfig {
Self {
signing_key: Some(key_pair.signing_key),
verifying_key: Some(key_pair.verifying_key),
bundle_version: std::env::var("WEBAPP_BUNDLE_VERSION").ok(),
bundle_version: Some("2025.2.0".to_string()),
frontend_path,
is_dev: cfg!(debug_assertions),
..Default::default()