Skip to content

Commit

Permalink
Merge pull request #117 from mikrostew/travis-publish
Browse files Browse the repository at this point in the history
Fix so publishing universal docs stops failing
  • Loading branch information
dherman authored Aug 17, 2018
2 parents acb48fd + fa1f646 commit 96fa89c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crates/notion-core/src/path/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! in a standard Notion layout in Windows operating systems.

use std::path::PathBuf;
#[cfg(windows)]
use std::os::windows;
use std::io;

Expand Down Expand Up @@ -48,6 +49,7 @@ fn program_data_root() -> Fallible<PathBuf> {
#[cfg(windows)]
return Ok(winfolder::Folder::ProgramData.path().join("Notion"));

// "universal-docs" is built on a Unix machine, so we can't include Windows-specific libs
#[cfg(feature = "universal-docs")]
unimplemented!()
}
Expand Down Expand Up @@ -132,6 +134,7 @@ fn program_files_root() -> Fallible<PathBuf> {
#[cfg(windows)]
return Ok(winfolder::Folder::ProgramFilesX64.path().join("Notion"));

// "universal-docs" is built on a Unix machine, so we can't include Windows-specific libs
#[cfg(feature = "universal-docs")]
unimplemented!()
}
Expand Down Expand Up @@ -161,6 +164,7 @@ fn local_data_root() -> Fallible<PathBuf> {
#[cfg(windows)]
return Ok(winfolder::Folder::LocalAppData.path().join("Notion"));

// "universal-docs" is built on a Unix machine, so we can't include Windows-specific libs
#[cfg(feature = "universal-docs")]
unimplemented!()
}
Expand All @@ -174,5 +178,10 @@ pub fn user_catalog_file() -> Fallible<PathBuf> {
}

pub fn create_file_symlink(src: PathBuf, dst: PathBuf) -> Result<(), io::Error> {
windows::fs::symlink_file(src, dst)
#[cfg(windows)]
return windows::fs::symlink_file(src, dst);

// "universal-docs" is built on a Unix machine, so we can't include Windows-specific libs
#[cfg(feature = "universal-docs")]
unimplemented!()
}

0 comments on commit 96fa89c

Please sign in to comment.